Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package versions have conflicting dependencies. #46

Open
bigbrother001 opened this issue May 1, 2024 · 1 comment
Open

package versions have conflicting dependencies. #46

bigbrother001 opened this issue May 1, 2024 · 1 comment

Comments

@bigbrother001
Copy link

bigbrother001 commented May 1, 2024

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?

@JeffreyLind3
Copy link

JeffreyLind3 commented Jun 21, 2024

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 Installation Issue #45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants