清华大学镜像下载
进入终端,运行指令
bash Anaconda2-5.1.0-Linux-x86_64.sh

回车

yes

yes

通过安装anconda,加载Microsoft VS Code
安装tensorflow
conda create-n tensorflow pip python=2.7



激活环境命令
source activate tensorflow
安装cpu版本的tensorflow
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.6.0-cp27-none-linux_x86_64.whl
验证tensorflow是否安装成功

通过Visual Studio Code 运行 python代码

配置用户环境
{
"files.autoSave":"afterDelay",
"python.venvPath": "/home/uestc/anaconda2/envs/tensorflow"
}
选择解析器
ctrl+shift+p

此时编译器运行在tensorflow环境下
网友评论