I was able to install pip by using distribute_setup.py
and get-pip.py
. However, I had to add pip to path by adding C:\Python27\Scripts.
我可以使用distribute_setup.py和get-pip.py来安装pip。但是,我不得不通过添加C:\ Python27 \ Scripts将pip添加到路径中。
This worked for a little while but I had to do a system restore for other reasons and now when I type pip in the command prompt it returns: 'pip' is not recognized as an internal or external command
.
这工作了一段时间,但由于其他原因我不得不进行系统还原,现在当我在命令提示符下键入pip时它返回:'pip'不被识别为内部或外部命令。
I tried adding C:\Python27\Scripts
to path again both to the user variable and system variable but to no avail. I also tried re-installing pip but it just said I had the latest version installed already. Pip can be imported without any error within python so I am at a loss here. Can anyone help?
我尝试将C:\ Python27 \ Scripts再次添加到用户变量和系统变量的路径,但无济于事。我也试过重新安装pip,但它只是说我已经安装了最新版本。可以在python中导入Pip而没有任何错误,所以我在这里不知所措。有人可以帮忙吗?
Thanks in advance.
提前致谢。
1 个解决方案
#1
0
Try using easy_install
尝试使用easy_install
easy_install -U pip
easy_install -U pip
This will remove pip
.
这将删除pip。
If you don't have easy_install
... installed, do that first.
如果您没有安装easy_install ...,请先执行此操作。
After uninstalling pip
, simply reinstall it using the get-pip.py
file.
卸载pip后,只需使用get-pip.py文件重新安装它。
#1
0
Try using easy_install
尝试使用easy_install
easy_install -U pip
easy_install -U pip
This will remove pip
.
这将删除pip。
If you don't have easy_install
... installed, do that first.
如果您没有安装easy_install ...,请先执行此操作。
After uninstalling pip
, simply reinstall it using the get-pip.py
file.
卸载pip后,只需使用get-pip.py文件重新安装它。