2017-09-14 54 views
0

我使用sudo pip3安裝了以下軟件包,但是pip再次打印了outdate軟件包。如何成功安裝它們?pip與sudo,但pip列出軟件包outdate

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)** 
+0

您是否使用'pip'或'pip3'列出的包? – jwodder

+0

pip3,我總是用3 –

回答

0

爲了升級已安裝的軟件包,您需要將--upgrade標誌傳遞給pip install,例如:

sudo pip3 install --upgrade html5lib