首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Python部署的冲突

Python部署的冲突
EN

Stack Overflow用户
提问于 2022-04-09 16:08:46
回答 1查看 141关注 0票数 -2

拜托,我对Python和Django非常陌生,我的一个朋友(非开发人员)向我介绍了如何在数字海洋上部署django。我试过解决我的一些问题,但不知道如何解决最近的问题:

代码语言:javascript
复制
 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

我试过访问地址,但不知道如何处理所提供的信息。拜托,帮帮我

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71809748

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档