在参考网上教程安装完后,进行BeautifulSoup测试,发现一直有问题。

C:\Python36>python
Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)]
 on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from bs4 import BeautifulSoup
这里有错误信息输出



下面是我的安装方法:


1  下载beautifulsoup,我用了别的版本,效果一直不好,最后选中了beautifulsoup4-4.5.3
把下载好的beautifulsoup4-4.5.3放到python的安装目录中

python安装BeautifulSoup


cd 到C:\Python36\beautifulsoup4-4.5.3



python setup.py build 之后 python setup.py install



cd C:\Python36\



C:\Python36>python
Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)]
 on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from bs4 import BeautifulSoup
>>>
没有异常,说明安装成功





我的系统是WIN7_64 ,我把我用到的资源放在百度网盘。


python-3.6.2-amd64

链接:http://pan.baidu.com/s/1nvE9vJV 密码:v3y4


beautifulsoup4-4.5.3

链接:http://pan.baidu.com/s/1geQaFnX 密码:cy4h


相关文章:

  • 2022-12-23
  • 2021-09-30
  • 2021-12-22
  • 2022-02-07
  • 2021-06-23
猜你喜欢
  • 2021-07-08
  • 2021-05-31
  • 2022-12-23
  • 2021-07-26
  • 2021-07-24
  • 2022-12-23
相关资源
相似解决方案