下载idea,本机上安装anaconda的python
- 在idea中安装python插件
- python的环境设为tensorflow的路径
- 最后建个python工程,写如下测试程序
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print (sess.run(hello))
- 最后成功说明可以了
2018/12/28 更新:
linux 查看cpu类型 cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
安装python 配置环境
pip install virtualenv
安装anaconda conda info --envs
conda create --name tensorflow python=3.7
conda install tensorflow
在anaconda prompt里面激活tensorflow环境
打开navigate
安装spyder