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