1.首先利用anaconda创建tensorflow虚拟环境:
bisheng@bisheng:~$ conda create -n py35 python=3.5 tensorflow=1.8
2.创建成功后,查找conda环境的目录:
bisheng@bisheng:~$ conda env list
3.打开下载好的pycharm
创建新工程
选择Existing interpreter
Conda Environment
在Interpreter中选择之前查找的路径