2017-09-12 3 views
0

J'installe tensorflow-gpu sur centos6.5 (python3.5) qui exige tenseur embarqué qui nécessite l'eau de Javel == 1.5.0 qui exige:html5lib ne se trouve pas dans l'installation de l'eau de Javel

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

si J'ai installé html5lib 0,9999999 (7 ​​nines) de la source:

python setup.py install 

Et je vérifiais l'installation par html5lib d'importation en python:

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 
>>> 

semble avoir réussi. Alors j'ai essayé d'installer 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) 

Et erreur est survenue:

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) 

Pour une raison quelconque l'ordinateur d'installation n'a pas de connexion réseau. Je télécharge donc les fichiers whl et tar.gz à partir d'un autre ordinateur et les télécharge sur l'ordinateur d'installation. J'ai aussi essayé html5lib 0.999, qui ne fonctionnait pas non plus et qui rapportait la même erreur. J'ai référé celui-ci enter link description here, et m'assurer que six 1.10.0 a été installé.

Répondre

0

Après quelques tossing-à propos, je trouve qu'il ya plusieurs versions de html5lib dans python_path/lib/python3.5/site-packages /:

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 

La version 0.999999999 (9) nines a d'abord été installé et domine entre autres. C'est pourquoi le système ne trouve pas la version requise (3 ou 6 ou 7 neuf). Je supprimé tous ces:

sudo -rf html5lib* 

et réinstallé les 7 nines version, il a travaillé à la fin.