Mac python environment pip error [ssl:tlsv1_alert_protocol_version] TLSv1 ALERT PROTOCOL VERSION (_ssl.c:590) workaround

Source: Internet
Author: User
Tags ssl certificate

1.mac python environment pip error:

issuserdemacbook-pro:~ issuser$ pip Install Pyinstaller
Collecting Pyinstaller
Could not fetch URL https://pypi.python.org/simple/pyinstaller/: There is a problem confirming the SSL certificate: [SSL: Tlsv1_alert_protocol_version] TLSv1 ALERT PROTOCOL VERSION (_ssl.c:590)-Skipping
Could not find a version this satisfies the requirement Pyinstaller (from versions:)
No matching distribution found for Pyinstaller

2. The reason for this error is that python.org has not supported TLSv1.0 and TLSv1.1 to update pip to resolve this issue.

However, if you use the traditional python-m pip install--upgrade Pip, there will still be the problem. This is because the TLS certificate issue needs to be upgraded to PIP, and the latest version of PIP cannot be downloaded because of the TLS certificate. At this time there is no way, only manually to upgrade PIP.

3. The solution is as follows:
Mac or Linux operating system: Execute command under Terminal: Curl https://bootstrap.pypa.io/get-pip.py | Python.
Windows operating system: Download the get-pip.py file from https://bootstrap.pypa.io/get-pip.py, and then use Python to run the file Python get-pip.py.

Mac python environment pip error [ssl:tlsv1_alert_protocol_version] TLSv1 ALERT PROTOCOL VERSION (_ssl.c:590) workaround

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.