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

来源:互联网 发布:javascript map对象 编辑:程序博客网 时间:2024/06/15 15:17

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版本号

成功!!!

阅读全文
0 0
原创粉丝点击