如何升级到Pip 10? [英] How to upgrade to Pip 10?
问题描述
我的Python已安装Pip 9.1.不幸的是,一个名为Scapely的软件包存在一个错误,无法安装.应该有一个针对Pip 10.0的修复程序,但是当我尝试使用"python -m pip install -U pip"升级pip时,Python在此命令后说要求已经是最新的".
My Python has Pip 9.1 installed. Unfortunately, a package called Scapely has a bug and won't install. There's supposed to be a fix for Pip 10.0, but when I try to upgrade pip using "python -m pip install -U pip", but Python says "requirement already up-to-date" following this command.
有什么方法可以手动安装Pip 10.0吗?谢谢!
Any way to install Pip 10.0 manually? Thanks!
推荐答案
更新
新版本发布后,您只需
pip install --upgrade pip
要重新安装 pip 10 :
MAC OS和LINUX
curl https://bootstrap.pypa.io/get-pip.py | sh
WINDOWS
在浏览器中打开此,然后使用Ctrl+S
下载.
Open this in browser and download using Ctrl+S
.
使用文件管理器打开此文件.
Open this file using file manager.
Or :
python get-pip.py
上一个答案:
从github下载此 master分支,或者您也可以克隆存储库.
Download this master branch from github, or you can also clone the repository.
在文件夹中,克隆或解压缩下载的文件:
Once inside the folder, either cloned or unziped the downloaded file:
python setup.py install
然后进行验证: 点-V 或
Then to verify: pip -V or
pip --version
这篇关于如何升级到Pip 10?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!