安装Django 2.0.2找不到版本 [英] install Django 2.0.2 Could not find a version
问题描述
我正在尝试使用pip install Django==2.0.2
但抛出,
Im trying to use pip install Django==2.0.2
but throw ,
No matching distribution found for Django==2.0.2
,
并且使用 Django
我该怎么办?
No matching distribution found for Django==2.0.2
,
and it´s weird cause im using the same command from Django,
what can i do ?
我正在使用OSX,并且无需调用显式python3即可安装virtual env
.
Im using OSX, and install virtual env
without call explicit python3.
推荐答案
首先,我使用virtualenv env -p python3
创建了一个新的虚拟环境.
然后,运行命令:pip install django
以安装django 2.
但是,如果您在终端中使用此行virtualenv my_project
创建虚拟环境,
您需要显式调用pip3:pip3 install django
First i created a new virtual env with virtualenv env -p python3
then, run the command : pip install django
to install django 2.
But if you create your virtual env with this line virtualenv my_project
in your terminal,
you need to explicit call pip3 : pip3 install django
这篇关于安装Django 2.0.2找不到版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!