首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >有sudo的pip,但是pip列出了过期的包

有sudo的pip,但是pip列出了过期的包
EN

Stack Overflow用户
提问于 2017-09-14 11:28:55
回答 1查看 67关注 0票数 0

我用sudo pip3安装了下面的一些包,但是pip再次打印过期包。如何成功安装?

代码语言:javascript
复制
 Package                      Version   Latest      Type
---------------------------- --------- ----------- -----
bleach                       1.5.0     2.0.0       wheel
html5lib                     0.9999999 0.999999999 wheel
jupyter-contrib-nbextensions 0.3.0     0.3.1       wheel
...
murmurhash                   0.26.4    0.28.0      sdist
nbconvert                    5.2.1     5.3.1       wheel
pyasn1-modules               0.1.1     0.1.4       wheel


⇒  sudo pip3 install html5lib

Password:
The directory '/Users/william/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/william/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: html5lib in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
Requirement already satisfied: six in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from html5lib)**
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-09-15 12:18:54

为了升级已安装的包,需要将--upgrade标志传递给pip install,例如:

代码语言:javascript
复制
sudo pip3 install --upgrade html5lib
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46217901

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档