拜托,我对Python和Django非常陌生,我的一个朋友(非开发人员)向我介绍了如何在数字海洋上部署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我试过访问地址,但不知道如何处理所提供的信息。拜托,帮帮我
发布于 2022-04-09 16:20:36
如果仔细阅读错误信息,这是非常明显的。
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
https://stackoverflow.com/questions/71809748
复制相似问题