+ 2

Got Stuck with this "python setup.py egg_info" failed with error code 1

pip install BeautifulSoup Collecting BeautifulSoup Using cached https://files.pythonhosted.org/packages/1e/ee/295988deca1a5a7accd783d0dfe14524867e31abb05b6c0eeceee49c759d/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:\Users\Achilies\AppData\Local\Temp\pip-install-zphm9dza\BeautifulSoup\setup.py", line 22 print "Unit tests have failed!" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Unit tests have failed!")? ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in C:\Users\Achilies\AppData\Local\Temp\pip-install-zphm9dza\BeautifulSoup\

5th Jul 2018, 8:55 AM
IMRAN HOSEN
IMRAN HOSEN - avatar
3 Antworten
+ 1
looks like it is for python2 could u check please?
5th Jul 2018, 9:34 AM
Oma Falk
Oma Falk - avatar
+ 1
pip3 install .... could help
5th Jul 2018, 9:35 AM
Oma Falk
Oma Falk - avatar
0
whatever you are trying to install has incorrect code in it. print has to always be called with parentheses in the version of python you are using
5th Jul 2018, 11:51 AM
hinanawi
hinanawi - avatar