'pip install' Encountering Installation Failures
Encountering installation failures with "pip install" for every package can be a frustrating experience. The error message "Could not find a version that satisfies the requirement
Solution
To resolve this issue, upgrade Pip using the following command:
curl https://bootstrap.pypa.io/get-pip.py | python
You may need to use "sudo python" if you are not in a virtual environment.
Cause
This issue arises because Python.org sites are discontinuing support for TLS versions 1.0 and 1.1. Consequently, Mac OS X version 10.12 (Sierra) and earlier are unable to use Pip without upgrading it. Even attempting to update Pip through "pip install --upgrade pip" will fail due to the interdependence of this issue.
Additional Notes
pip install --upgrade setuptools
The above is the detailed content of Why is 'pip install' Failing and How Can I Fix It?. For more information, please follow other related articles on the PHP Chinese website!