ubuntu14安装TensorFlow

1.安装ubuntu

网址:https://www.cnblogs.com/blog4matto/p/5581914.html

选择ubuntu14的原因:最初是想安装16的,后来发现总出问题,网上查了一下说是连着网线就可以了;连了网线以后发现问题没有解决,所以改成安装ubuntu14

2.安装anconda+tensorflow+pycharm

网址:https://blog.csdn.net/zzc15806/article/details/73662491

https://blog.csdn.net/cs_hnu_scw/article/details/79695347

https://www.leiphone.com/news/201606/ORlQ7uK3TIW8xVGF.html

里边tensorflow网址可以这么改写:pip install tensorflow

3.如果运行pycharm时没有选择使用tensorflow中的编译器

网址:https://blog.csdn.net/qq_36982160/article/details/79603927

笔者第一次操作时发现相应的bin文件夹是空的(在终端中可以运行tensorflow程序,在pycharm中找不到tensorflow模块),猜测是因为安装tensorflow时用的sudo安装,导致不能再普通用户下使用,故卸载anaconda,从头开始安装

4.依然有错时,卸载anaconda重新安装

安装时注意不要sudo安装tensorflow

网址:https://blog.csdn.net/lixintong1992/article/details/67654753

猜你喜欢

转载自www.cnblogs.com/shixisheng/p/9187596.html