Pycharm install third-party libraries-super detailed steps

1. Test environment

Test model: window10 

pycharm version: 2020.1.1 Professional Edition


Two, installation steps

1. Open pycharm, click File in the top menu item, and find Settings as shown in the figure:

2. Click Settings, find your project in Project (1), and then the page shown in the right display box will be displayed, click Project Interpreter (2):

3. After clicking, the following page will appear. The Package in the middle table represents the package you have added, Version represents the current version, and latest version represents the latest version. To add a new package, you need to click the "+" sign in the upper right corner:

4. After clicking the plus sign, we will see the following page, the top is the search box (1), in which you can find the library you want to install (note that it is case sensitive), and the display box on the left, search out according to your needs The results will be displayed in the box on the left, and the details of the library are on the right. (2) Whether to agree to install the library into the site package directory.

5. Here we take the installation of Beautifulsoup4 as an example: search for the package name, select the target package, check the dialog box, and click install Package:

6. Here you will learn how to download third-party libraries. The downloading process can be seen at the bottom of the initial page. Here, if we close the above page, the download will continue, that is, if the package is too large or the download takes a long time, we can close the window to do other work. Is it very caring?

7. When this prompt appears, it means that the library has been installed. At this time, you can return to step 3 and check the downloaded library in the package:

8. Friendly reminder, when the download failed, it is recommended to switch the network to download again.

 

 

 

Guess you like

Origin blog.csdn.net/qq_45807032/article/details/106096113