Python 安装 BeautifulSoup(Win7)

时间:2023-03-09 03:10:52
Python 安装 BeautifulSoup(Win7)

准备材料:

1。Win7,已安装的 Python3.4.1

2。BeautifulSoup4.3.2安装包

安装办法:

1。打开cmd

2,进入BeautifulSoup的解压文件夹

3,执行 python setup.py install

>>> import bs4
>>>

至此成功安装。程序会自己主动将bs4包拷贝到python安装路径中的Lib\site-packages\目录中

见下图(图中的 “2 to 3”是笔者自己加上的,你的肯定没有这句,不用操心)

Python 安装 BeautifulSoup(Win7)