【tensorflow】ubuntu下安装tensorflow gpu出现错误

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值