Python download install beautifulsoup library 1, download https://www.crummy.com/software/BeautifulSoup/bs4/download/4.5/
2. Unzip to the Python directory:
3, "Win+r" into the cmd; Enter the following code, in turn:
C:\USERS\ADMINISTRATOR>CD D:\softwareIT\Python27\beautifulsoup4-4.5.0C:\Users\Administrator> d:d:\softwareit\python27\beautifulsoup4-4.5.0>python setup.py build D:\softwareIT\Python27\ beautifulsoup4-4.5.0>python setup.py Install
4. Complete installation 5, enter Python
Import the package to see if the installation was successful.
The latest version of the import package statement is not the same, here is to pay attention to the '
Import BS4 Import BeautifulSoup
That's all you can do ...
You can't use it.
From BeautifulSoup import BeautifulSoup
Such a statement.
PS: Another simple way to install
Python Download install BeautifulSoup library