我正在试图在usb驱动器F上安装pip :在便携式python旁边,但它似乎不起作用。我使用Git-bash (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我重新启动了命令行。但是,“哪个点”仍然什么也没有产生。我怎么才能解决这个问题?
发布于 2014-01-09 18:19:44
您需要编辑您的$PATH环境变量以添加/f/ppython275/App/Scripts,因此shell将在该目录中查找可执行文件。
编辑您的~/.bashrc或~/.bash_profile并添加以下内容:
export PATH=$PATH:/f/ppython275/App/Scripts保存,重新启动您的shell,您应该都设置好了。
https://stackoverflow.com/questions/21028026
复制相似问题