neulab / BARTScore

BARTScore: Evaluating Generated Text as Text Generation
Apache License 2.0
318 stars 37 forks source link

package versions have conflicting dependencies. #46

Open bigbrother001 opened 6 months ago

bigbrother001 commented 6 months ago

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?

JeffreyLind22 commented 4 months ago

I performed the following actions to fix this: