#第4篇Sharing: python third-party module installation-----one hero three help

#Windows under python third-party module installation:
python third-party libraries are very rich, and they are all free. By introducing various modules, it is very convenient to realize the development of some projects: crawlers, data analysis, artificial intelligence, etc .:
1. Installation under python:
Installation method 1:
a. Shortcut key windows+R to call up the running window, enter cmd and press Enter to call up the command window (cd + path can switch the location, if you are on the C drive and want to enter the D drive, d: ie Yes );
b. Input: pip install module name xxx
( --default -timeout=1000 ) to install the module (go to a specific path to find, there are cases where it cannot be found); (adding the sentence in brackets can solve part of the network failure Download abnormal situation)

Installation method 2:
pip is not a omnipotent method, sometimes it may
not be found on the Internet , then you can only download the
module manually , and then install it locally (you can download it directly from Baidu
or go to the official website to download)
a. Open the folder where the downloaded module is placed;
b. Hold down shift in the current folder, right-click and select
"open powershell window here ";
c. pip install the full name of the module xxx, you can successfully install;

Installation method 3:
If you can't install it anyway, you can ask if anyone has installed it, and copy all his installed packages and you can use it;

The same applies to your previous installation, there is no need for a second installation, but please pay attention to copy all the installation files, see the figure below.
Insert picture description here
Note: The installed module will be in the bold position of C/your python installation path: C:\Users\86150\AppData\Local\Programs \Python\Python37\Lib\site-packages ;

If there is an error in the above installation, it displays'wheel' is not install: then you need to install the wheel module first: pip install wheel
2. Install under Pycharm:
Installation method 1: Install directly under Pycharm (not recommended, many cannot be found ), settings->xxxxx:
Insert picture description here
Installation method 2: Same as the above installation method 3, we need to copy the installed module to the project path built by Pycharm: For example: D:\python\PF\venv\Lib\site-packages

The above is the installation of third-party modules under windows. I have introduced the method of importing modules, import module name xxx; for other systems, the installation method is basically the same, but the syntax will be slightly different, so we can start to do some bigger things. , If you want to know what is going on, please listen to the next breakdown.
We always hope that life can be less difficult and more peaceful, but we will understand after many years that as long as we live, we will meet. Because we meet, it is wonderful, right? Just like we study, if a BUG does not have you, you should be afraid, because it is difficult to learn the soul, your quality, and your fine quality.
The fourth sharing, continuing to update,,,,,

Guess you like

Origin blog.csdn.net/weixin_46008828/article/details/108615018