No matching distribution found for Django==2.2

前端 未结 1 739
有刺的猬
有刺的猬 2020-12-20 16:21

I am deploying a django app on a digital ocean droplet server that I developed using Django version 2.0. Using Putty to SSH into my ubuntu server, I try to upgrade using

相关标签:
1条回答
  • 2020-12-20 17:08

    pip is usually the package manager for Python-2.x. Django-1.11 is the last version of Django that works with Python-2.x: Django-2.0, only works on Python-3.4 or higher, as is specified in the documentation on installing Django [Django-doc].

    Therefore the package manager can not find Django-2.2, hence the error. You likely want to use Python-3.x anyway. So you can install the package with the package manager for Python-3.x: pip3:

    pip3 install Django==2.2
    0 讨论(0)
提交回复
热议问题