django - 无法使用 pip 安装最新版本的 Django

标签 django pip

我正在尝试安装最新的 Django 版本 2.0.1,如 https://www.djangoproject.com/download/ 中所述。这是最新的官方版本,但是当我运行命令 pip install Django==2.0.1 时我收到错误。错误如下图所示。如何安装最新版本?

enter image description here

最佳答案

你的Python版本太旧了。来自官方docs :

Django 2.0.1 requires Python: >=3.4

python 2.7 的最新版本是 Django 1.11.9。

您可以找到所有可用版本及其要求 here .

关于django - 无法使用 pip 安装最新版本的 Django,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48474580/

相关文章:

python - 如何在python 3.7中生成条形码

django - 如何重新启动在后台运行的 django 服务器?

python - 如何创建基于其他字段进行评估的 Django 模型字段?

python - 保存 django charfield,并在模型保存时替换空格

python - DigitalOcean 中的 Pyopenssl 加密构建轮失败意味着什么?

python - pip requirement.txt 基于环境变量的条件或环境标记

javascript - BootStrap Django Jquery Modal 未关闭 Ajax 调用提交

python - Heroku部署使用django和gunicorn : Missing gunicorn_django file or dir

python - 在 python 3 : "compile failed with error code 1" 上通过 pip 安装 scipy 库时出错

python-3.x - 如何在 Arch Linux 中安装最新版本的 Python 和 pip?