一、 本文介绍基于 Ubuntu 操作系统搭建深度学习 Tensorflow 开发环境的一般方法。
二、 基本步骤
2.1 下载并安装 Anaconda3-5.0.1-Linux-x86_64.sh
# wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
# chmod +x Anaconda3-5.0.1-Linux-x86_64.sh
# ./Anaconda3-5.0.1-Linux-x86_64.sh
2.2 下载 Tensorflow
# wget https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.4.0-cp36-cp36m-linux_x86_64.whl
2.3 创建 ENV 环境,安装 tensorflow
# conda create -n tensorflow python=3.6
# source activate tensorflow
# pip install tensorflow-1.4.0-cp36-cp36m-linux_x86_64.whl
2.4 下载并解压运行
PyCharm
# tar zxvf pycharm-professional-2017.2.1.tar.gz
# cd pycharm-2017.2/bin
# ./pycharm.sh
2.5 集成 Tensorflow
File -> Settings...