How to install Python and numpy under Windows system
Some of the third-party package installation steps for Python in Windows are too cumbersome (here is numpy for example, there are a lot of problems with installing it at the moment), it took several hours at night to install the NumPy scientific calculation package, described here the installation process, Avoid the detours that are not necessary for everyone to go.
1, install Python
First, run the downloaded MSI installation package, and when you choose to install the components, make sure that all the components are ticked.
In particular, be careful to select Pip and add Python.exe to Path, and then click Next multiple times to complete the installation.
The Python interpreter is installed by default into the C:\Python34 (in Python3.4 example) directory, then opens a command prompt window, enters Python into interactive mode, and enters any Python code in that mode. When you press ENTER, the result will be executed immediately.
If you get an error: ' Python ' is not an internal or external command, nor is it a running program or batch file. The reason is most likely due to the fact that add Python.exe to path is not checked.
2, install a third-party package
we checked Pip and add Python.exe to Path in the previous installation, so we can run the PIP command directly from the Command prompt window to install the third party package. For example: Pip Install Pillow (a tool library for processing images), the pip command has been able to install the vast majority of third-party packages, but there are always exceptions.
When we installed NumPy with pip install NumPy, we were surprised to find a lot of mistakes.
The main reason is this error:microsoft Visual C + + 10.0 is required (unable to find Vcvarsall.bat)
Because the NumPy internal matrix operation is implemented in C language, it is necessary to install the compiler tool, but it is also understandable, but it is strange that my computer has already installed the VS2012, why do such errors occur?
It was later discovered that everyone was using the NumPy library to install the precompiled http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
The installation steps are also simple:
1, download the appropriate version of your platform, such as download NUMPY?1.9.2+MKL?CP34?NONE?WIN_ARM64.WHL
which Cp34 stands for CPython 3.4,win_arm64 refers to the 64-bit version.
2. Move the file to the C:\Python34\Scripts folder
3,pip Install Whell
4,pip Install NUMPY?1.9.2+MKL?CP34?NONE?WIN_ARM64.WHL
After the above 4 steps, NumPy is correctly installed, in fact, it is not so difficult, but took a lot of detours. After installing NumPy, you can install the Matplotlib drawing library through the PIP install matplotlib command.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
How to install Python and numpy under Windows system