Home  >  Article  >  Backend Development  >  Python downloads the module and then installs it

Python downloads the module and then installs it

藏色散人
藏色散人Original
2019-10-15 10:58:035434browse

Python downloads the module and then installs it

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 ' '

Python downloads the module and then installs it

Directly search for the module you need,

Python downloads the module and then installs it

and click install packages

Python downloads the module and then installs it

Python downloads the module and then installs it

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

Python downloads the module and then installs it

Just download the version you need!

Python downloads the module and then installs it

Huang Blogger downloads it to the desktop and pulls it up!

Python downloads the module and then installs it

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn