How to install the python module after downloading it?
Recommended: "Python Tutorial"
How to install python modules
You must call Python when learning Python There are many modules, how to install them?
Huang Blogger currently has mastered two methods. If you have different methods, you can privately chat with Huang Blogger and let’s learn together!
First method:
First click File above, find Settings in the drop-down list that appears, and click the ' '
Directly search for the module you need,
and click install packages
So what should I do if the corresponding version cannot be found? There's nothing you can do about it, just don't install it or continue reading the second method of the pornographic blogger!
Second type: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyhook This is the download address of all python modules
Just download the version you need!
Huang Blogger downloads it to the desktop and pulls it up!
Enter cmd, the first step is to enter the location where you placed the file, (Huang Blogger placed it on the desktop)
The second step :pip install file name.whl must be added with a suffix, otherwise it will not be installed.
pip install is like this for all modules. What blogger Huang above shows is the installed pyHook module!
The above is the detailed content of Python downloads the module and then installs it. For more information, please follow other related articles on the PHP Chinese website!