环境:win10,python 3.5,Beautiful Soup 4.1
步骤1:设定python为系统环境变量,具体设置如下图,在文本后加上“;C:\Python35;C:\Python35\Scripts”(python的安装路径)
2. 运行cmd,切换到C:/desktop/beautifulsoup4/目录下(C:/desktop/beautifulsoup4为beautifulsoup4路径),具体方法运行“cd C:/desktop/beautifulsoup4”
3.运行命令:
python setup.py build
python setup.py install
4.在IDE下from bs4 import BeautifulSoup,没有报错说明安装成功。
转载于:https://www.cnblogs.com/GiraffaMPRO/p/6041587.html