One painful search for answers resolved for installing BeautifulSoup

The interwebs is full of ‘answers’ for this error

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 /tmp/pip-install-r9yaqi1s/beautifulsoup/

Do a search and you will find the vast majority of solutions involve updating pip, or upgrading setuptools, or python-dev.

You might try one of these - none of these worked for me

pip install --upgrade pip
pip install --upgrade setuptools
apt-get install python3.6-dev libmysqlclient-dev
easy_install -U setuptools

Worked for me

pip3 install BeautifulSoup4

Contact Me

Read Next Banner

Add banner at bottom with “Read Next” or “Previous/Next” suggestion point to own content

Old Points to New

Once posted, edit other posts with “If you enjoyed this piece, you might also like…”

Written on December 20, 2018