Search code examples
pythonpipvirtualenv

Could not find a version that satisfies the requirement in python


I am trying to create virtual env with python2 in mac os from here. While running pip install virtualenv command in terminal I am getting following error.

Could not find a version that satisfies the requirement virtualenv (from versions: )
No matching distribution found for virtualenv

Solution

  • If you are using python 3.x, Please try this commands

    sudo pip3 install --upgrade pip

    sudo pip3 install virtualenv