2017-09-12 41 views
0

我安裝要求張板需要漂白== 1.5.0這就需要在centos6.5(python3.5)tensorflow-GPU:html5lib不能漂白安裝找到

Collecting html5lib!=0.9999,!=0.99999,<0.99999999,>=0.999 (from bleach==1.5.0) 

所以我安裝源html5lib 0.9999999(7九):

python setup.py install 

而且我在python通過進口html5lib驗證安裝:

Python 3.5.0 (default, Sep 10 2017, 00:16:28) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import html5lib 
>>> 

似乎成功。 然後我試圖安裝bleach1.5.0:

$ sudo pip install bleach-1.5.0-py2.py3-none-any.whl 
Processing ./bleach-1.5.0-py2.py3-none-any.whl 
Collecting html5lib!=0.9999,!=0.99999,<0.99999999,>=0.999 (from 
bleach==1.5.0) 

而且出錯:

Could not find a version that satisfies the requirement 
html5lib!=0.9999,!=0.99999,<0.99999999,>=0.999 (from bleach==1.5.0) (from 
versions:) 
No matching distribution found for html5lib!=0.9999,!=0.99999, 
<0.99999999,>=0.999 (from bleach==1.5.0) 

出於某種原因,安裝電腦沒有網絡連接。因此,我從另一臺計算機下載所需的whl文件和tar.gz,並將其上傳到安裝計算機。 我也試過html5lib 0.999,它也沒有工作,並報告相同的錯誤。 我參考了這個enter link description here,並確保安裝了六個1.10.0。

回答

0

一些後輾轉反側-一下,我發現有在python_path/lib目錄/ python3.5/site-packages中html5lib的幾個版本/:

html5lib 
html5lib-0.999999999.dist-info 
html5lib-0.9999999-py3.5.egg-info 
html5lib-0.999999-py3.5.egg-info 
html5lib-0.999-py3.5.egg-info 

版本0.999999999(9九)被首先安裝並主宰其他。這就是爲什麼系統找不到所需版本(3或6或7個9)。 我刪除了所有這些:

sudo -rf html5lib* 

並重新安裝7個花枝招展的版本,它曾在去年。

相關問題