Could not find a version that satisfies the requir

2020-02-26 11:23发布

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

5条回答
兄弟一词,经得起流年.
2楼-- · 2020-02-26 11:45

Please try below commands

pip install --upgrade virtualenv
查看更多
▲ chillily
3楼-- · 2020-02-26 11:58

If you are using Windows, you have to run cmd as admin.

查看更多
别忘想泡老子
4楼-- · 2020-02-26 12:00

Run this command and try again

curl https://bootstrap.pypa.io/get-pip.py | python

The detailed description can be found in the link shared by Anupam in the comments.

查看更多
狗以群分
5楼-- · 2020-02-26 12:04

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

sudo pip3 install --upgrade pip

sudo pip3 install virtualenv

查看更多
看我几分像从前
6楼-- · 2020-02-26 12:06

We tried the above but they didn't work in our case because we had two versions of python3 on the systems. One via a normal install a few months back and one via brew (on a Mac). When we discovered that, we downloaded and installed the latest version from python.org and as a result the pip was updated too. Once the pip was installed the sudo pip3 install virturaenv command worked fine.

查看更多
登录 后发表回答