bharadwaj bharadwaj - 4 months ago 20
Python Question

Failed to install package Beautiful Soup. Error Message is "SyntaxError: Missing parentheses in call to 'print'"

I have installed Python 3.5 on my Windows 8 Computer. I have also installed Pycharm Community Version 5.0.4. I am not able to install BeautifulSoup Module through Settings Option in Pycharm. I am getting the following error in Pycharm:

Collecting BeautifulSoup
Using cached BeautifulSoup-3.2.1.tar.gz
Complete output from command python egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Kashyap\AppData\Local\Temp\pycharm-packaging0.tmp\BeautifulSoup\", line 22
print "Unit tests have failed!"
SyntaxError: Missing parentheses in call to 'print'


Command "python egg_info" failed with error code 1 in C:\Users\Kashyap\AppData\Local\Temp\pycharm-packaging0.tmp\BeautifulSoup

Path of installed folder of Python is 3.5.1 (C:\Program Files (x86)\Python35-32\python.exe)


You are trying to install BeautifulSoup 3, which is not Python 3 compatible. As the Pycharm error window explains:

Make sure you use a version of Python supported by this package. Currently you are using Python 3.5.

However, you want to install BeautifulSoup 4 instead; the project name for that series has changed to beautifulsoup4. BeautifulSoup 4 has been out for a few years now and supports Python 3.