python – conda environment conflict: guesslang and TensorFlow
when I run conda env create -f environment.yml
in my ubuntu 20.04, but conflict occurs.
how can I solve it?
I try to update my anaconda, but it doesn’t go well
Collecting guesslang~=2.0
Downloading guesslang-2.2.0-py3-none-any.whl (2.5 MB)
Downloading guesslang-2.0.3-py3-none-any.whl (2.1 MB)
Downloading guesslang-2.0.1-py3-none-any.whl (2.1 MB)
Downloading guesslang-2.0.0-py3-none-any.whl (13.0 MB)
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pydriller to determine which version is compatible with other requirements. This could take a while.
The conflict is caused by:
guesslang 2.2.1 depends on tensorflow==2.5.0
guesslang 2.2.0 depends on tensorflow==2.5.0
guesslang 2.0.3 depends on tensorflow==2.5.0
guesslang 2.0.1 depends on tensorflow==2.2.0
guesslang 2.0.0 depends on tensorflow==2.2.0
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
Pip subprocess error:
ERROR: Cannot install -r /home/yang/Documents/CVE/CVEfixes/condaenv.ko814pto.requirements.txt (line 2) because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
CondaEnvException: Pip failed
Read more here: Source link