ubuntu中安装TensorFlow (支持CPU)
打开终端
一、安装pip
打开终端,输入命令:sudo apt-get install python-pip python-dev (python2)
sudo apt-get install python3-pip python3-dev (python3)
安装成功后执行更新:sudo apt-get update
安装tensorflow
在终端输入命令:pip install tensorflow (python2.7的版本,支持CPU)
pip3 install tensorflow (python3.x的版本,支持CPU)
安装还有可能按步骤进行安装结果却出现问题的,有可能是因为Pyhon 版本不对,需要从官网下载相关文件然后进行安装。
如果下载过程中失败则有可能是因为网速问题 ,可进入软件和更新将软件源更改为mirrors.aliyun.com
参考: https://www.cnblogs.com/tademeng/p/7451125.html
并对上网设置进行更改
sudo vim /etc/modprobe.d/iwlwifi.conf
在末尾添加
options iwlwifi 11n_disable=1
参考:https://blog.csdn.net/hit2015spring/article/details/53428121