BeautifulSoup 報(bào)錯(cuò),怎么解決
系統(tǒng)環(huán)境:win7,32位,python3.5.1,BeautifulSoup4.4.1
D:\python351\python.exe D:/Python/module/baike_spider351/html_parser.py
Traceback (most recent call last):
? File "D:/Python/module/baike_spider351/html_parser.py", line 2, in <module>
? ? from bs4 import BeautifulSoup
? File "D:\python351\lib\bs4\__init__.py", line 48
? ? 'You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work.'<>'You need to convert the code, either by installing it (`python setup.py install`) or by running 2to3 (`2to3 -w bs4`).'
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?^
SyntaxError: invalid syntax
2016-07-31
什么東西?
2016-03-29
重新安裝哪個(gè)?
2016-02-08
重新安裝就可以了!
2016-02-01
這個(gè)問題你解決了嗎??我也遇到了