There is a good reason you might stumble upon this post, so let’s see how can we resolve the following pip install some_package command error:
ERROR: Could not find a version that satisfies the requirement package_name (from versions: none)
ERROR: No matching distribution found for package_name
Prerequisites
- Python
- pip
Possible causes
There are few reasons though including PyPI servers being down, package doesn’t exist or is not available, but mostly it comes down to the following two reasons:
- You are running an older version of pip.
- You can curl, wget and list PyPI package in the browser, but can’t pip install it because of a network proxy issue.
Solution
Solution 1. Upgrade pip.
On Linux and macOS:
curl https://bootstrap.pypa.io/get-pip.py | python
On Windows, just download the latest MSI file from the official site.
Solution 2. Use proxy settings with pip. For instance:
pip install <package> --proxy address:port
Google for any proxy servers.
Solution 3. Try to disable any active VPN connection, or proxy settings.
Conclusion
If you can think of any other alternative solution, please do let me know in the comment section below. On a side note, follow our official channel on Telegram.