If you are not a python based classmate, it is recommended to download the installation Anaconda directly, which has integrated a variety of data analysis required modules, here do not repeat.
Download Address: https://www.continuum.io/downloads/
Here's how to install and use Python's pip to install each module method, Pip is a tool for installing and managing Python packages, and Pip is a easy_install substitute. In the CPython interpreter, the PYPY interpreter can work well. 1. Python+numpy step1: Website download installation package;
https://www.python.org/
step2:python environment variable configuration; Computer-Properties-Advanced system settings-environment variables-system variables
Locate path, click Edit, plus English semicolon; After the semicolon plus the path where Python.exe is located, click OK
Step3:python Installation Verification W+r run cmd, open terminal, enter Python
Python
Display version information indicates successful installation;
**********PIP installation (such as Python version with PIP can be skipped, cmd input pip can be viewed) ******************
STEP4:PIP Installation First, add the path where the Pip.exe is located in the environment variable path, and the PIP file defaults to the script folder of the Python installation package after entering CMD, pip installs, input command: python-m pip install-u pip
*******************numpy Installation ****************************************************
step5: Download the corresponding version of the NumPy installation package, WHL file download address: https://pypi.python.org/pypi/numpy, download the python version of the corresponding WHL, see the Table pyversion column, Check the clear version, or the error will not support the platform
step6: Install NumPy
After the above steps are accurate, enter CMD, enter WHL storage path. If the WHL file is stored in D disk, enter D directly in CMD: and return;
Enter the D disk and enter the name of the command CD to enter the WHL location, such as input: CD D:\Python35\Scripts\; and then enter the command line: Pip install numpy filename. WHL
step7: Import numpy module to Python
Open python.exe, enter command line: Import numpy STEP8: Test
The test example of "machine learning Combat" is cited:
Open Python.exe;
Enter command line: Random.rand (4,4)
Returns a 4*4 random array, because it is the random number that is produced, and the random numbers generated by the computer vary completely. 2.pandas Installation if Python and Pip are already installed, continue with the following steps:
step1: Download
Address: Https://pypi.python.org/pypi/pandas Download the corresponding version, as follows.
Step2: Installation
After the above steps are accurate, enter CMD, enter WHL storage path. If the WHL file is stored in D disk, enter D directly in CMD: and return;
Enter the D disk and enter the name of the command CD to enter the WHL location, such as input: CD D:\Python35\Scripts\; and then enter the command line: Pip install pandas filename. WHL eg:pip instal pandas -0.19.2-cp35-cp35m-win_amd64.whl
step3: Importing pandas to Python
Open Python.exe;
Enter command line: Import Pandas step4: test examples of "machine learning Combat":
Open Python.exe
Enter command line
3 Installation Matplotlib
In fact, the installation of these modules in the speed allowed under the circumstances, directly in the DOS input this command can:
python-m pip Install Matplotlib
This is not particularly convenient. That is, the installation of NumPy, you can directly enter the python-m pip install NumPy, the same pandas installation.
However, if the network environment is not particularly good, please refer to the download WHL file installation method.