[Python] installation reptiles library requests in Pycharm, the solution BeautifulSoup, lxml of

B eautifulSoup learning Python process may need to use some reptiles library

For example: B Requests eautifulSoup library and lxml

In front of the two libraries, can be used by Pychram

File-->Other Settings-->Settings for New Project

(A method of introducing completion)

Click + 

 

 

 

 Search installation is complete

 

 

 For example installation here

requests

 

 

 Note here:

Specify version when the left (to install the development version) and then the first installation of the check is not required

Prevent installation errors

After installation, the page will display

The Package 'XXXXXXX' Installed successfully (successful installation xxxxxx)

As long as this is not an installation fails, the network might be related to the environment (no VPN)

Introduced can also be done through a command terminal

(This paper describes the pycharm by mounting, for mounting the terminal commands, not elaborated here)

Because B eautifulSoup library has now been included bs4 library

So we only need to install the library on it bs4

Installation as above

 

 After the installation is complete

 

 

 We can see that we have installed in the library on a window

 

 

However, the installation is always the case lxml library installation will fail

 

Also read many posts on the Internet

 

Use the command line mode can also be installed to complete the installation but more complex

 

I also tried other methods

 

Eventually found

 

After installing the wheel in the library pycharm

 

(Installed as above)

 

Install lxml library

 

You can complete the installation

 

 

Guess you like

Origin www.cnblogs.com/yanglichen/p/12115877.html