安装Django 2.0.2找不到版本 [英] install Django 2.0.2 Could not find a version

查看:462
本文介绍了安装Django 2.0.2找不到版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆