错误1:Cannot uninstall 'html5lib'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
错误的原因是tensorflow要求的是0.9999版本的html5lib,而我的是1.08b版本的,解决方法:
(1)pip install tensorflow_gpu-1.2.0-cp27-cp27mu-manylinux1_x86_64.whl --ignore-installed html5lib
也就是忽略,这是我采用的方法
(2)直接全局搜索对应文件,具体包括 "package name" 文件夹 和 "package name".egg-info ,找到后直接删除即可
这个是我百度的方法,没有用过
错误2:ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.
出错的原因是有旧的版本。解决办法是pip uninstall numpy