我正试图将pip安装到便携python旁边的一个usb驱动器F:上,但它似乎不起作用。我使用gitbash(msys)作为我的命令行。请看下面我的尝试:
MYPC /f
$ which python
/f/ppython275/App/python
MYPC /f
$ which pip
MYPC /f
$ python get-pip.py
Downloading/unpacking pip
Downloading pip-1.5.tar.gz (898kB): 898kB downloaded
Running setup.py egg_info for package pip
warning: no files found matching 'pip\cacert.pem'
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.rst' found under directory 'docs\_build'
no previously-included directories found matching 'docs\_build\_sources'
Installing collected packages: pip
Running setup.py install for pip
warning: no files found matching 'pip\cacert.pem'
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.rst' found under directory 'docs\_build'
no previously-included directories found matching 'docs\_build\_sources'
Installing pip-script.py script to f:\ppython275\App\Scripts
Installing pip.exe script to f:\ppython275\App\Scripts
Installing pip.exe.manifest script to f:\ppython275\App\Scripts
Installing pip2.7-script.py script to f:\ppython275\App\Scripts
Installing pip2.7.exe script to f:\ppython275\App\Scripts
Installing pip2.7.exe.manifest script to f:\ppython275\App\Scripts
Installing pip2-script.py script to f:\ppython275\App\Scripts
Installing pip2.exe script to f:\ppython275\App\Scripts
Installing pip2.exe.manifest script to f:\ppython275\App\Scripts
Successfully installed pip
Cleaning up...
MYPC /f
$ which pip
我重新启动了命令行。但“哪个点子”仍然一无所获。我该怎么解决这个问题?在
您需要编辑您的
$PATH
环境变量以添加/f/ppython275/App/Scripts
,这样shell就会在该目录中查找可执行文件。在编辑您的
~/.bashrc
或~/.bash_profile
,并添加以下内容:保存,重新启动你的shell,你应该准备好了。在
相关问题 更多 >
编程相关推荐