Python Django API 部署冲突

发布于 2025-01-20 14:40:05 字数 1111 浏览 0 评论 0原文

请,我是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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦里梦着梦中梦 2025-01-27 14:40:05

如果你仔细阅读错误消息,这一点非常明显。

用户请求 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, but django-rest-logger 1.0.4 depends on Django<=2.2 and >=1.11. As the error message suggested, you should either loosen the Django version from 2.2.16 to 2.2 or uninstall django-rest-logger

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文