BARTScore icon indicating copy to clipboard operation
BARTScore copied to clipboard

package versions have conflicting dependencies.

Open bigbrother001 opened this issue 1 year ago • 1 comments

Thanks for great work! when I try to install the environment by pip install -r requirements.txt

It will tell me that package versions have conflicting dependencies. For example,

The conflict is caused by: The user requested scipy==1.4.1 scikit-learn 0.24.0 depends on scipy>=0.19.1 tensorflow 2.3.0 depends on scipy==1.4.1 unbabel-comet 0.1.0 depends on scipy<1.6.0 and >=1.5.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

or

INFO: pip is looking at multiple versions of pytorch-lightning to determine which version is compatible with other requirements. This could take a while. ERROR: Cannot install -r bartscore_env_requirements.txt (line 63) and fsspec==0.8.7 because these package versions have conflicting dependencies.

The conflict is caused by: The user requested fsspec==0.8.7 pytorch-lightning 1.3.0 depends on fsspec>=2021.4.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

How can I make it?

bigbrother001 avatar May 01 '24 02:05 bigbrother001

I performed the following actions to fix this:

  • Create a new conda environment with Python 3.7: conda install -c anaconda python=3.7
  • Comment out the fsspec==0.8.7, tensorboard==2.5.0, and unbabel-comet==0.1.0 lines in requirements.txt and let pip figure it out itself.
  • pip install -r requirements.txt ...don't we all love dependency hell? May also help fix #45

JeffreyLind3 avatar Jun 21 '24 23:06 JeffreyLind3