Windows下安装BeautifulSoup4完后,from bs4 import BeautifulSoup报错:
>>> from bs4 import BeautifulSoup
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\xxx\AppData\Local\Programs\Python\Python35\beautifulsoup4-4.5.0\bs4\__init__.py", line 53
'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