Failed to install package Beautiful Soup. Error Message is "SyntaxError: Missing parentheses in call to 'print'"
Question:
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 setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:UsersKashyapAppDataLocalTemppycharm-packaging0.tmpBeautifulSoupsetup.py", line 22
print "Unit tests have failed!"
^
SyntaxError: Missing parentheses in call to 'print'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:UsersKashyapAppDataLocalTemppycharm-packaging0.tmpBeautifulSoup
Path of installed folder of Python is 3.5.1 (C:Program Files (x86)Python35-32python.exe)
Answers:
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.
Using Anaconda with the more current BeautifulSoup4
is the easiest.
conda install BeautifulSoup4
or
pip3 install BeautifulSoup4
you can try
pip2 install BeautifulSoup4
Hope This Help
Try
pip install BeautifulSoup4
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 setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:UsersKashyapAppDataLocalTemppycharm-packaging0.tmpBeautifulSoupsetup.py", line 22
print "Unit tests have failed!"
^
SyntaxError: Missing parentheses in call to 'print'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:UsersKashyapAppDataLocalTemppycharm-packaging0.tmpBeautifulSoup
Path of installed folder of Python is 3.5.1 (C:Program Files (x86)Python35-32python.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.
Using Anaconda with the more current BeautifulSoup4
is the easiest.
conda install BeautifulSoup4
or
pip3 install BeautifulSoup4
you can try
pip2 install BeautifulSoup4
Hope This Help
Try
pip install BeautifulSoup4