Oct-07-2019, 05:21 PM
When I run the following I'm getting an error message. Anyone knows how to correct it?
>>> import requests >>> from bs4 import BeautifulSoup
Error:Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\mustf\AppData\Local\Programs\Python\Python37\bs4\__init__.py", line 52
'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