如何在 Windows 上降级已安装的“pip"版本? [英] How to downgrade the installed version of 'pip' on windows?
本文介绍了如何在 Windows 上降级已安装的“pip"版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 Windows 7 机器上,我安装了 pip
1.5.6 版:
On a windows 7 machine I have pip
version 1.5.6 installed:
pip 1.5.6 from C:\Users\dietz\PNC\tas\ENV\lib\site-packages (python 2.7)
为了找出错误的原因,我想安装不同版本的 pip,这对我来说效果很好.那么如何卸载 pip
并安装 1.2.1 版呢?
In order to find the reason for an error I want to install a different version of pip, which worked fine for me. So how can I uninstall pip
and install version 1.2.1 instead?
推荐答案
pip
本身只是一个普通的 python 包.因此,您可以使用 pip 安装 pip.
pip
itself is just a normal python package. Thus you can install pip with pip.
当然,您不想影响系统的 pip,请将其安装在 virtualenv 中.
Of cource, you don't want to affect the system's pip, install it inside a virtualenv.
pip install pip==1.2.1
这篇关于如何在 Windows 上降级已安装的“pip"版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文