Skip to content Skip to sidebar Skip to footer

Having Trouble Installing Ssl With Pip Install: "syntaxerror: Missing Parentheses In Call To 'print'"

I'm trying to install SSL on my PC, but I keep getting the error below. Am I missing something really basic here? I tried upgrading my pip and upgrading setuptools, but nothing se

Solution 1:

Given the error, it appears that your Python executable is Python 3.x (which requires print statements to be called with parentheses), but the package being installed is intended for Python 2.x. That likely means you need to upgrade your pip to Python 3 (you may already have it as pip3; i.e., try running pip3 install ssl).

It appears that the ssl package in the PyPi repository only supports Python 2 (https://pypi.org/project/ssl/), but the ssl library is already built into Python 3 (https://docs.python.org/3/library/ssl.html)

Solution 2:

The above error means your pip is broken and is missing some files required for it to bypass SSL, you might try to install SSL via tarball but that too may fail, you may try adding trusted hosts to pip.conf and if that also fails, you have two options either remove your python version completely or just reinstall pip. Reinstalling pip won't work using pip commands due to SSL. So you can head to https://pypi.org/project/pip/ and download the tarball and install pip. Hope this helps.

Post a Comment for "Having Trouble Installing Ssl With Pip Install: "syntaxerror: Missing Parentheses In Call To 'print'""