Skip to content

conflicting dependencies #932

Closed
Closed
@kiko0217

Description

Bug description

I get error conflicting dependencies when installing doctr version tf-cpu with editable flag.

Code snippet to reproduce the bug

git clone -b v0.5.1 --depth 1 https://github.com/mindee/doctr.git
pip install -e doctr/.[tf-cpu]

Error traceback

ERROR: Cannot install python-doctr, python-doctr[tf-cpu]==0.5.1a0 and tensorflow-cpu==2.8.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    python-doctr[tf-cpu] 0.5.1a0 depends on keras<2.7.0
    tensorflow-cpu 2.8.0 depends on keras<2.9 and >=2.8.0rc0
    python-doctr[tf-cpu] 0.5.1a0 depends on keras<2.7.0
    tensorflow-cpu 2.9.1 depends on keras<2.10.0 and >=2.9.0rc0
    python-doctr[tf-cpu] 0.5.1a0 depends on keras<2.7.0
    tensorflow-cpu 2.9.0 depends on keras<2.10.0 and >=2.9.0rc0
    python-doctr[tf-cpu] 0.5.1a0 depends on keras<2.7.0
    tensorflow-cpu 2.8.2 depends on keras<2.9 and >=2.8.0rc0
    python-doctr[tf-cpu] 0.5.1a0 depends on keras<2.7.0
    tensorflow-cpu 2.8.1 depends on keras<2.9 and >=2.8.0rc0

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/topics/dependency-resolution/#dealing-with-dependency-conflicts

Environment

Deep Learning backend

Metadata

Assignees

Labels

framework: tensorflowRelated to TensorFlow backendtopic: buildRelated to dependencies and buildtype: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions