Preparatory work for deep learning--python,pip,numpy,tensorflow installation

Source: Internet
Author: User

1. Download and install Python

https://www.python.org/downloads/windows/

Recommendation 3.6.5 version

2. Activate Pip

Because the python3.4 after the PIP, but need to upgrade, switch to: /python\python36\scripts directory, run python-m pip install--upgrade pip, upgrade pip

Reference Document: https://www.zhihu.com/question/35951699

After installation, you need to configure the environment variables for Python and Pip, as shown below, to add python_home and Python_pip to path:

After you configure the environment variables, run pip--version and Python--version as shown in Install complete:

3. Installing NumPy

1.> in the https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy路径下载对应版本的numpy文件, because my python is 3.6, so I should download the numpy-1.14.3+ Mkl-cp36-cp36m-win_amd64

2.> after download completes in the download directory to open cmd, installs the NumPy with the Pip, may refer to the document https://zhuanlan.zhihu.com/p/27135994

3.> install numpy: command pip install NUMPY-1.14.3+MKL-CP36-CP36M-WIN_AMD64.WHL

The installation is complete as follows:

4.> to detect if the installation was successful, import the NumPy with Python, as follows to complete the installation

4. Installing TensorFlow

1.> download the corresponding version of the TensorFlow, must be corresponding to the Python version, the latest is the support python3.6 version, for: https://pypi.org/project/tensorflow-gpu/#files, Because my Python version is 3.6, so download TENSORFLOW_GPU-1.8.0-CP36-CP36M-WIN_AMD64.WHL

2.> Installation: command: Pip install TENSORFLOW_GPU-1.8.0-CP36-CP36M-WIN_AMD64.WHL

3.> test whether the installation was successful.

Display installation failed after import

Discover that there are fewer dependent packages, and finally install TensorFlow directly with the PIP install TensorFlow command, and test correctly:

All the environment is ready, now all the small partners can learn in depth with TensorFlow.

Preparatory work for deep learning--python,pip,numpy,tensorflow installation

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.