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