美文网首页
安装tensorflow的艰辛之后

安装tensorflow的艰辛之后

作者: 陶_306c | 来源:发表于2020-06-06 15:00 被阅读0次

之前安装的是tensorflow2.0版本,因为用session所以把tf更新到1.14
但是版本低了,总要跟上新的东西。又要安装tensorflow2.0版本的。
太难了,试了好多办法,都没用。

pip install tensorflow==2.0

失败告终

pip install tensorflow

还是失败,一直提醒我timeout.
最后终于成功了。先要卸载,再安装。
pip用别的源下载:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣 http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

pip uninstall tensorflow

我用的清华源:

pip install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple/

bingo!!安装成功。

相关文章

网友评论

      本文标题:安装tensorflow的艰辛之后

      本文链接:https://www.haomeiwen.com/subject/rylzzhtx.html