Download
Windows version: https://www.python.org/downloads/windows/
Similar to installer end of the file that we need to download, the number of bits according to their own computer to choose (x86:32 bit, x86-64:64 bit)
Download the installation tutorial Here I will not say, there are too many online. Installation Tutorial: https://jingyan.baidu.com/article/e73e26c0bad76224acb6a766.html (from Baidu Experience)
Environment variable Configuration
I'm Win7 here, win10, just need to find the path of the environment variable (Control Panel > System > Advanced system Settings)
Just add a file path like this in the diagram.
If there is a different Python version in your computer, you can rename the. exe file in the installation file
Module installation
First, execute the easy_install.exe pip Command install PIP tool in cmd in the Scripts folder in the installation directory
You can now install additional modules in this directory using the PIP Install module name .
For example, installing the Pymysql module:
If there is an error installing in CMD, you can use another installation method:
Go to https://www.lfd.uci.edu/~gohlke/pythonlibs/, download the desired module
You can find your desired module by ctrl+f according to the keyword, Scikit-learn is the module I want to install
Click to select the corresponding version of the download, it is important to note that: it is best to download the WHL file directly into the Python installation directory of the Scripts folder (because the installation is done in the scripts directory, you do not have to write absolute path), so as to facilitate the installation later.
Install: Still use pip install WHL file name (file name is too long, you can directly rename and then copy the file name and then paste)
Hope this article is useful to you, if you have any other questions please contact me! Thank you!
Python download, environment variable configuration, module installation method