标签:
1. 安装Beautiful Soup
下载地址
http://www.crummy.com/software/BeautifulSoup/bs4/download/4.4/
解压后,进入根目录
控制台下运行:
python setup.py install
运行结果:
Processing dependencies for beautifulsoup4==4.4.0
Finished processing dependencies for beautifulsoup4==4.4.0
然后,继续在控制台下运行:
pip install beautifulsoup4
新建一个测试文件
test_soup.py
from bs4 import BeautifulSoup
控制台下运行:
python test_soup.py
如果没有错误发生, 说明安装成功!!
标签:
原文地址:http://www.cnblogs.com/davidgu/p/4812719.html