New course! Every coder should learn Generative AI!
Try a free lesson+ 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\
3 Answers
+ 1
looks like it is for python2
could u check please?
+ 1
pip3 install ....
could help
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