"pip install" Failure for All Packages Due to TLS Issues
Question:
Pip install is consistently failing for all packages, returning the message "Could not find a version that satisfies the requirement." Despite checking similar questions, no apparent solution has been found.
Answer:
Upgrade pip with the following command:
curl https://bootstrap.pypa.io/get-pip.py | python
Explanation:
Python.org sites are phasing out support for TLS versions 1.0 and 1.1. As a result, Mac OS X version 10.12 (Sierra) or older will require a pip upgrade for continued functionality.
Consequences of Not Upgrading:
Additional Precautions:
pip install --upgrade setuptools
The above is the detailed content of Why Is 'pip install' Failing for All Packages Due to TLS Issues?. For more information, please follow other related articles on the PHP Chinese website!