BeautifulSoup模块安装

BeautifulSoup模块适用于python2.6以上(费了我好大劲)

1.先把BeautifulSoup包下载下来,我下载的是beautifulsoup4-4.3.1.tar.gz

2.加压到C:\Python26

3.cmd到beautifulsoup4-4.3.1目录下 cd /d c:/Python26/beautifulsoup4

我把beautifulsoup4-4.3.1改成了beautifulsoup4

你要是不改就是 cd /d c:/Python26/beautifulsoup4-4.3.1

4.在该目录下执行python setup.py install

5.在pyhon IDE 里面 from bs4 import BeautifulSoup

6.提示没有错误说明安装BeautifulSoup成功

posted @ 2016-04-22 16:34  northeast  阅读(154)  评论(0)    收藏  举报