解决安装Tensorflow时的setup-tool错误

解决安装Tensorflow时的setup-tool错误

在执行安装Tensorflow安装命令的过程中:

$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl

发生了:

Cannot remove entries from nonexistent file /usr/local/anaconda2/lib/python2.7/site-packages/easy-install.pth

通过执行:

$ pip install --ignore-installed setuptools

成功修复setup-tool问题。
然后再次执行安装

$ pip install --upgrade $TF_BINARY_URL

成功安装:

Collecting tensorflow==0.9.0 from https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl
  Using cached https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl
Requirement already up-to-date: numpy>=1.8.2 in /mnt/data3/shaowen/anaconda2/lib/python2.7/site-packages (from tensorflow==0.9.0)
Requirement already up-to-date: six>=1.10.0 in /mnt/data3/shaowen/anaconda2/lib/python2.7/site-packages (from tensorflow==0.9.0)
Requirement already up-to-date: protobuf==3.0.0b2 in /mnt/data3/shaowen/anaconda2/lib/python2.7/site-packages (from tensorflow==0.9.0)
Requirement already up-to-date: wheel in /mnt/data3/shaowen/anaconda2/lib/python2.7/site-packages (from tensorflow==0.9.0)
Requirement already up-to-date: setuptools in /mnt/data3/shaowen/anaconda2/lib/python2.7/site-packages (from protobuf==3.0.0b2->tensorflow==0.9.0)
Installing collected packages: tensorflow
  Found existing installation: tensorflow 0.9.0
    Uninstalling tensorflow-0.9.0:
      Successfully uninstalled tensorflow-0.9.0
Successfully installed tensorflow-0.9.0
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值