tf-raft
tf-raft copied to clipboard
Cannot install with pip due to tensorflow-addons conflict
I was unable to install this package using pip due to a conflict with tensorflow-addons version. tf-raft specifies it needs tensorflow-addons<0.12.0 and >=0.11.1
, however maybe these versions are no longer stored by pip? I found cloning the repo and changing the specification in pyproject.toml
to tensorflow-addons = ">0.11.1"
allowed me to install it fine, so maybe this needs to be changed. I haven't verified if that changes how the model works in any way though.. I don't expect it would though.
Below is the pip error message I was getting:
pip install tf-raft
Collecting tf-raft
Using cached tf_raft-0.1.4-py3-none-any.whl (21 kB)
Collecting albumentations<0.5.0,>=0.4.6
Using cached albumentations-0.4.6.tar.gz (117 kB)
Preparing metadata (setup.py) ... done
Collecting tf-raft
Using cached tf_raft-0.1.3-py3-none-any.whl (21 kB)
Using cached tf_raft-0.1.2-py3-none-any.whl (20 kB)
Using cached tf_raft-0.0.0-py3-none-any.whl (19 kB)
ERROR: Cannot install tf-raft==0.0.0, tf-raft==0.1.2, tf-raft==0.1.3 and tf-raft==0.1.4 because these package versions have conflicting dependencies.
The conflict is caused by:
tf-raft 0.1.4 depends on tensorflow-addons<0.12.0 and >=0.11.1
tf-raft 0.1.3 depends on tensorflow-addons<0.12.0 and >=0.11.1
tf-raft 0.1.2 depends on tensorflow-addons<0.12.0 and >=0.11.1
tf-raft 0.0.0 depends on tensorflow-addons<0.12.0 and >=0.11.1
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
Thanks for the tf implementation!