Why is pip reporting dependencies conflicts even though there are none?

107 Views Asked by At

pip is reporting dependencies conflicts when there are none:

The conflict is caused by:
    apache-beam[gcp] 2.39.0 depends on numpy<1.23.0 and >=1.14.3
    tensorflow-utils 0.0.18.dev1 depends on numpy==1.22.4

tensorflow-utils==0.0.18.dev1 is my own package. The boundaries in the conflict specify that numpy must be >=1.14.3 and <1.23 for apache-beam[gcp], which my numpy==1.22.4 version satisfies.

Environment details:

root@6b7ea6e22c5a:/# python3 -V
Python 3.7.10

root@6b7ea6e22c5a:/# python3 -m pip -V
pip 21.2.2 from /opt/conda/lib/python3.7/site-packages/pip (python 3.7)
1

There are 1 best solutions below

2
Jamelaumn On

It could be cached dependency information: It's possible that pip has cached outdated or conflicting dependency information. You can try clearing the pip cache pip cache purge