升级tensorflow报连接出错,解决办法

sudo pip install –upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.4.0-cp27-none-linux_x86_64.whl

升级tensorflow报错,报连接出错。

ConnectionError: HTTPSConnectionPool(host=’storage.googleapis.com’, port=443): Max retries exceeded with url: /tensorflow/linux/cpu/tensorflow-1.4.0-cp27-none-linux_x86_64.whl (Caused by NewConnectionError pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fe5cd0fcf10>: Failed to establish a new connection: [Errno 101] Network is unreachable’

解决办法:

可以用讯雷将这个文件下载下来,然后再安装

sudo pip install –upgrade /你电脑上路径/tensorflow-1.4.0-cp27-none-linux_x86_64.whl

然后运行

python -c ‘import tensorflow as tf; print(tf.version)’
查看tensorflow版本号

成功!!!

你可能感兴趣的:(升级tensorflow报连接出错,解决办法)