错误版本的Python Pip安装 [英] Python Pip Installing for Wrong Version
问题描述
我知道之前曾有人问过这个问题,但是我的问题有所不同.我既安装了pip2.7并正常工作,又安装了pip3.4并正常工作(使用我的Python 2.7和3.4版本),但是我的pip2.7安装在错误的目录中(安装在3.4文件夹中).
I know this question has been asked before, but my issue is a bit different. I have both pip2.7 installed and working and pip3.4 installed and working (with my Python 2.7 and 3.4 versions), but my pip2.7 is installing in the wrong directory (it is installing in the 3.4 folder).
如您所见,我有两个版本都可以使用,从网上阅读的其他所有内容来看,它们应该指向我的两个不同版本的Python,但它们都指向同一目录.我找不到有关手动更改pip2.7指向的位置的任何信息.谢谢!
As you can see, I have both versions working, and from everything else I've read online these should point to my two different versions of Python, yet they are pointing to the same directory. I can't find anything about manually changing where pip2.7 is pointing. Thanks!
推荐答案
我建议卸载并重新安装pip
.通过运行
I'd suggest to uninstall and reinstall pip
. Do so by running
pip uninstall pip
从 https://bootstrap.pypa.io/get-pip下载get-pip.py
引导程序.py 并运行
Download the get-pip.py
bootstrapper from https://bootstrap.pypa.io/get-pip.py and run
python2.7 get-pip.py
或
python3.4 get-pip.py
分别.
这篇关于错误版本的Python Pip安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!