close

[Solved] Could not find a version that satisfies the requirement

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

  1. 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.

  2. 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

18 thoughts on “[Solved] Could not find a version that satisfies the requirement”

  1. > 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

    Reply
  2. 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!

    Reply

Leave a Comment