TensorFlow Python Environment Configuration __python

Source: Internet
Author: User

TensorFlow in a Python environment, the easiest way to do this is to use the ANACONDA3 integrated environment for installation.

First of all, download the anaconda3,3.6 version or version 2.7 of the Python version in the Anaconda3 website.


You do not need to install the Python direct install Anconda3 beforehand, will automatically install the corresponding Python.

After the Anaconda installation is successful, we need to modify its package management image as a domestic source.

In CMD, run the two commands separately.

Conda config--add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
Conda config--set show_ Channel_urls Yes

After setting up the mirror, create an environment, P35 is the name of the environment, TensorFlow currently supports Python 3.5 so we use the 3.5 version of Python

Conda create-n P35 python=3.5

You can then activate and exit the environment through the Activate P35 and deactivate P35 commands.

Enter Activate P35 Enter the environment, then enter PIP install TensorFlow Press ENTER

will automatically start downloading installation TensorFlow

After all the actions of CMD, the TensorFlow environment is completed.

Related Article

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.