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
我尝试访问地址,但不知道该如何处理给出的信息。 拜托,帮我
Please, i'm very new to Python and Django, a friend (non developer) reached out to me on deploying django on digitalocean. I've tried troubleshooting some of my issues but dont understand how to solve the latest one:
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
I've tried visiting the address but dont know what to do with the information given.
Please, help me out
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果你仔细阅读错误消息,这一点非常明显。
用户请求 Django==2.2.16
,但django-rest-logger 1.0.4 依赖于 Django<=2.2 和 >=1.11
。正如错误消息所建议的,您应该将Django
版本从 2.2.16 放宽到 2.2 或卸载django-rest-logger
It's very obvious from the error message if you read it carefully.
The user requested Django==2.2.16
, butdjango-rest-logger 1.0.4 depends on Django<=2.2 and >=1.11
. As the error message suggested, you should either loosen theDjango
version from 2.2.16 to 2.2 or uninstalldjango-rest-logger