If you too, have encountered SSL errors while installation/upgrading any python package from pip.
Here below is the workaround for it.
You might be flooded by this errors.
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)
Workaround.
Ignore SSL errors by setting pypi.org and files.pythonhosted.org as trusted hosts.
# pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org <package_name>
Lets assume i want to install pika through pip
# pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org pika
No comments:
Post a Comment