python安装BeautifulSoup
在参考网上教程安装完后,进行BeautifulSoup测试,发现一直有问题。C:\Python36>pythonPython 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license
在参考网上教程安装完后,进行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的安装目录中
2
cd 到C:\Python36\beautifulsoup4-4.5.3
3
python setup.py build 之后 python setup.py install
4
cd C:\Python36\
5
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
更多推荐
所有评论(0)