- anaconda3简单介绍:anaconda简介
- anaconda3安装:https://blog.youkuaiyun.com/u010212101/article/details/78440053
- Python3.5下tensorflow安装(亲测国内有效且速度较快):https://www.cnblogs.com/lyyang/p/6665082.html
-
conda create -n tensorflow python=3.5
source activate tensorflow
conda install -c https://conda.anaconda.org/jjhelmus tensorflow
测试是否安装成功的测试代码:
import tensorflow as tf
hello = tf.constant('first tensorflow')
sess = tf.Session()
print(sess.run(hello))
如果想在已配置好的环境下安装相应的包,可以采用以下指令:
source activate tensorflow
conda install spyder
conda install matplotlib
conda install scipy
通过以上方法安装好的tensorflow版本相对较低,想要安装更高版本,可以在pycharm的环境管理中安装指定版本的tensorflow
通过以下代码查看相应的tensorflow版本
import tensorflow as tf
tf.__version__