1. Download and install Anaconda1.1 download
Download the Linux version from Anaconda official website (https://www.continuum.io/downloads)
https://repo.continuum.io/archive/(Recommended python3.5)
1.2 Installation
CD ~/downloads
sudo bash anaconda2-5.0.1-linux-x86_64.sh (download the corresponding version of Python2.7 here)
Ask if you want to add the Anaconda bin to the user's environment variable and select yes!
Installation is complete.
2. Install tensorflow2.1 set up TensorFlow operating environment
# Python 2.7
$ Conda create-n TensorFlow python=2.7
# Python 3.4
$ Conda create-n TensorFlow python=3.4
# Python 3.5
$ Conda create-n TensorFlow python=3.5
2.2 Install TensorFlow (PIP installation mode) 2.2.1 Activate Conda environment in Conda environment
$ source Activate TensorFlow
2.2.2 Setting environment variables according to the version of TensorFlow (for example, CPU version)
# Ubuntu/linux 64-bit, CPU only, Python 2.7
(tensorflow) $ export tf_binary_url=https://storage.googleapis.com/tensorflow/linux/cpu/ Tensorflow-0.10.0-cp27-none-linux_x86_64.whl
# Ubuntu/linux 64-bit, CPU only, Python 3.4
(tensorflow) $ export tf_binary_url=https://storage.googleapis.com/tensorflow/linux/cpu/ Tensorflow-0.10.0-cp34-cp34m-linux_x86_64.whl
# Ubuntu/linux 64-bit, CPU only, Python 3.5
(tensorflow) $ export tf_binary_url=https://storage.googleapis.com/tensorflow/linux/cpu/ Tensorflow-0.10.0-cp35-cp35m-linux_x86_64.whl
2.2.3 Installation TensorFlow
# Python 2
(tensorflow) $ pip install--ignore-installed--upgrade $TF _binary_url
# Python 3
(tensorflow) $ pip3 Install--ignore-installed--upgrade $TF _binary_url
Be careful not to use the sudo command here, or you will be prompted to find TensorFlow when setting pycharm. Also, if you are prompted not to find PIP3, use the sudo apt-get install Python3-pip installation.
After the above steps are installed, exit from the Conda environment
(TensorFlow) $ source Deactivate
Installation is complete.
http://blog.csdn.net/zzc15806/article/details/73662491
Ubuntu16.04 under Installation TensorFlow (ANACONDA3+PYCHARM+TENSORFLOW+CPU)