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

Error downing file requirement.txt #3

Open
yingqianch opened this issue Dec 2, 2024 · 3 comments
Open

Error downing file requirement.txt #3

yingqianch opened this issue Dec 2, 2024 · 3 comments
Assignees

Comments

@yingqianch
Copy link

After I read the paper OutEffHop, I was very interested in this study. So I opened the github link provided by the literature to find here. To replicate the results of the experiment. Since I want to study BERT and OPT models, I ran commands as follows:
$ conda create -n outlier python==3.9

Run the pip module as a script.

$ python -m pip install -r /your_path/OutEffHop/OutEffHop/requirements.txt
But I got the following error:
ERROR: Cannot install -r requirement.txt (line 10), -r requirement.txt (line 2), -r requirement.txt (line 21) and -r requirement.txt (line 6) because these package versions have conflicting dependencies.

The conflict is caused by:
apache-beam 2.52.0 depends on dill<0.3.2 and >=0.3.1.1
datasets 2.14.0 depends on dill<0.3.8 and >=0.3.0
evaluate 0.4.1 depends on dill
multiprocess 0.70.15 depends on dill>=0.3.7

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip to attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
Through the above errors, I know that they cause conflicts because apache-beam 2.52.0、 datasets 2.14.0、evaluate 0.4.1 and multiprocess 0.70.15 have different version requirements for dill. I would like to know how this problem can be resolved and whether the versions of the four libraries involved can be changed to eliminate this error. I would appreciate it if you could tell me the solution.

@robinzixuan
Copy link
Contributor

I am sorry for the late reply. You can try to ignore the environment-specific version. I think it should be fine for the different package versions with the requirement.txt. I just checked my environment, those package versions are as same as our requirement.txt. If you have any questions, feel free to ask me.
P.S. I think one package version you should pay attention to is timm.

@robinzixuan
Copy link
Contributor

@wormyu Hong-Yu, would you mind double-checking the installation again?

@yingqianch
Copy link
Author

I am sorry for the late reply. You can try to ignore the environment-specific version. I think it should be fine for the different package versions with the requirement.txt. I just checked my environment, those package versions are as same as our requirement.txt. If you have any questions, feel free to ask me. P.S. I think one package version you should pay attention to is timm.

Can you tell me your version of dill? Thank you!

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

3 participants