说明
我安装anaconda的目的是为了python2.7和python3.5可以切换,python3.5支持tensorflow1.4
目前最新的anaconda3 4.3的版本支持pythpon3.6因此这里下载的是anaconda2-4.2.0根据自己的需要在这里下载anaconda
资源下载
1.anaconda3
2.tensorflow1.4
安装过程
1.安装anaconda3
bash Anaconda2-4.2.0-Linux-x86_64.sh
source ~/.bashrc
检测
python3
出现:
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19)
[GCC 7.2.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
安装anaconda成功安装tensorflow
conda create -n tensorflow python=3.6
source activate tensorflow
pip install –ignore-installed –upgrade tensorflow-1.0.0-py3-none-linux_x86_64.whl(注意:首先下载的安装包需要修改名字,不然会报错;另外要用pip不能用pip3不然也会报错(无奈脸))
验证
python
import tensorflow as tf