pip3安装模块冲突怎么解决

来源:2-5 Mysql、Mongo、Redis安装

weixin_慕数据7571500

2021-03-31

INFO: pip is looking at multiple versions of backports-abc to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of babel to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of asn1crypto to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of appnope to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of ansible to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of alabaster to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r re.txt (line 22), -r re.txt (line 24), -r re.txt (line 25) and Django==1.11.6 because these package versions have conflicting dependencies.

The conflict is caused by:
The user requested Django==1.11.6
django-bootstrap-form 3.2 depends on django>=1.3
django-classy-tags 0.8.0 depends on Django>1.3
django-cms 3.1.3 depends on Django<1.9 and >=1.6.9

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
写回答

1回答

Jeson

2021-04-07

The user requested Django==1.11.6
django-bootstrap-form 3.2 depends on django>=1.3
django-classy-tags 0.8.0 depends on Django>1.3
django-cms 3.1.3 depends on Django<1.9 and >=1.6.9

按照这个提示解决下试试

0
0

Python+Django+Ansible Playbook自动化运维项目实战

【课程升级3.6版本】大牛全面践行DevOps,运维与开发间高效协作

861 学习 · 326 问题

查看课程