BeautifulSoup 报错,怎么解决
系统环境: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