首页 > 系统服务 > 详细

ubuntu---记录.简单一句话安装tf

时间:2019-10-14 14:24:44      阅读:82      评论:0      收藏:0      [点我收藏+]
卸载
sudo pip3 uninstall tensorflow
sudo pip3 uninstall tensorflow-gpu
sudo pip3 uninstall tensorflow-gpu==1.15.0rc2


安装
sudo pip3 install tensorflow==1.15.0
sudo pip3 install tensorflow-gpu
sudo pip3 install tensorflow-gpu==1.15.0rc2


查看是否安装成功
Installing collected packages: tensorflow-gpu
Successfully installed tensorflow-gpu-1.15.0rc2
u@u160406:~$ python
Python 3.5.2 (default, Nov 12 2018, 13:43:14) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> print(tf.__version__)
1.15.0-rc2
>>> 


u@u160406:~$ python -c "import tensorflow as tf; print(tf.__version__)"
1.15.0-rc2
u@u160406:~$ 


(py3) u@u160406:~/Virtualenv/py3$ python -c "import tensorflow as tf; print(tf.__version__)"
1.13.0-rc1

 

ubuntu---记录.简单一句话安装tf

原文:https://www.cnblogs.com/carle-09/p/11670934.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!