Python Django API部署冲突



请注意,我对Python和Django非常陌生,一位朋友(非开发人员(联系我,希望在digitalocean上部署Django。我试着解决了一些问题,但不知道如何解决最新的问题:

The conflict is caused by:
The user requested Django==2.2.16
django-cors-headers 3.2.1 depends on Django>=1.11
django-filter 2.0.0 depends on Django>=1.11
django-phonenumber-field 4.0.0 depends on Django>=1.11.3
django-rest-knox 3.0.3 depends on django
django-rq 2.3.2 depends on django>=2.0
djangorestframework 3.11.1 depends on django>=1.11
drf-yasg 1.20.0 depends on Django>=2.2.16
django-rest-logger 1.0.4 depends on Django<=2.2 and >=1.11

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
ERROR: failed to build: exit status 1

我试过访问这个地址,但不知道该怎么处理提供的信息。请帮我解决

如果仔细阅读错误消息,就会发现这一点。

The user requested Django==2.2.16而不是django-rest-logger 1.0.4 depends on Django<=2.2 and >=1.11。正如错误消息所建议的,您应该将Django版本从2.2.16放宽到2.2,或者卸载django-rest-logger

最新更新