Ubuntu16.04 under Installation TensorFlow (ANACONDA3+PYCHARM+TENSORFLOW+CPU)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.