To Solve this Could not find a version that satisfies the requirement You need to update your pip and setup tools and that will resolve this error.
Solution 1: Just update the pip
You just need to update the pip and your error will be resolved. Just follow this command.
If you are a windows user Then run this command.
python -m pip install --upgrade pip
Mac users who use pip and PyPI
curl https://bootstrap.pypa.io/get-pip.py | python
And then also upgrade setuptools after doing the above.
pip install --upgrade setuptools
Solution 2: Use this command.
On Debian-based systems, I’d try
apt-get update && apt-get upgrade python-pip
Red Hat Linux-based systems:
yum update python-pip
On Mac:
sudo easy_install -U pip
Solution 3: For Requirements.txt
If You are trying to install Requirements.txt and you are facing this error then You need to use -r in the command line. Just Like This.
pip install -r requirements.txt
And now, Your error will be resolved.
Solution 4: Make Sure the Right Python version Using
Please Make Sure You are Using Right Python Version In your Command line. If You have installed Python 3 and You are trying to use Python2 then You might face this error.
python3 -m pip install <your_pkg>
Frequently Asked Questions
How to solve Could not find a version that satisfies the requirement error?
to solve Could not find a version that satisfies the requirement error If You are trying to install Requirements.txt and you are facing this error then You need to use -r in the command line. Just Like This: pip install -r requirements.txt And now, Your error will be resolved.
Could not find a version that satisfies the requirement
to solve Could not find a version that satisfies the requirement error Please Make Sure You are Using Right Python Version In your Command line. If You have installed Python 3 and You are trying to use Python2 then You might face this error: python3 -m pip install <your_pkg>
Summary
The solution is simple you just need to update your PIP to the very latest version and then update setuptools will resolve this error. Comment below if you are still facing this error.
Also, Read
Thank you dude Solution two saved my day
My pleasure to help You. Thank You For your valuable comment Vishal.
Thanks a lot the first solution worked for me.
My pleasure to help You Farid and Thank You For your Valuable Word!
> apt-get update && apt-get upgrade python-pip
That is incorrect; that will upgrade all of the software on your system. Instead do this:
apt-get update && apt-get install python-pip
or for python 3:
apt-get update && apt-get install python3-pip
Thank You Bryce For Your Suggestion. We will correct this in our solutions. Again Thank You Bryce!!
Solved my error. Thank You So Much Team.
It’s my Pleasure to Help You Gasse. Thank You For Your Valuable words.
Thanks Worked For Me
It’s my Pleasure to Help You Ady. Thank You For Your Valuable words.
Thank you so much, man!
It did help me
It’s my Pleasure to Help You Collins Awusa. Thank You For Your Valuable words.
Hello Everyone,
Thanks for the great content. Unfortunately, this problem is persisting for me. I use a MacBook Pro and have run all the recommended mac specific lines in the terminal and although they run correctly – I am left with the original error when I use
pip3 install package
I would love some further assistance in this troubleshooting!
It’s my Pleasure to Help You Zachary. Thank You For Your Valuable words.
Thank u
It’s my Pleasure to Help You. Thank You For Your Valuable words.
Thanks, Man!!
It’s my Pleasure to Help You Rody. Thank You For Your Valuable words.