美文网首页
在Ubuntu下利用Anaconda 配置 tensorflow

在Ubuntu下利用Anaconda 配置 tensorflow

作者: Panda_chen | 来源:发表于2019-08-28 09:34 被阅读0次

清华大学镜像下载


anaconda2-5.1.0-linux-x86_64


进入终端,运行指令


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环境下


相关文章

网友评论

      本文标题:在Ubuntu下利用Anaconda 配置 tensorflow

      本文链接:https://www.haomeiwen.com/subject/ivrleftx.html