[Tutor] Help request ERROR installing beautifulsoup

Mats Wichmann mats at wichmann.us
Mon Apr 29 11:13:55 EDT 2019


On 4/29/19 1:44 AM, Alan Gauld via Tutor wrote:
> On 28/04/2019 17:11, Dr. Luca T wrote:
>                         ^
>>     SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Unit tests have failed!")?
>>     ----------------------------------------
> 
>> I use windows 10, python 3.7.3 ...
> 
> The problem is you are running python 2 code using python 3.
> You need to find a python 3 version of your package.
> 

You definitely want beautifulsoup4, not just because the version 3 one
doesn't work with Python 3, but also because the authors tell you not to
use it:

"This package is OBSOLETE. It has been replaced by the beautifulsoup4
package. You should use Beautiful Soup 4 for all new projects."

By the way, if you are using pip to install, it is recommended to use it
through the Python interpreter you intend to use.  Since you're on
Windows, hopefully you've let your install set up the Python Launcher
and then it would look like:

py -m pip install beautifulsoup4




More information about the Tutor mailing list