OutEffHop icon indicating copy to clipboard operation
OutEffHop copied to clipboard

Error downing file requirement.txt

Open yingqianch opened this issue 1 year ago • 3 comments

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.

yingqianch avatar Dec 02 '24 12:12 yingqianch

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 avatar Dec 19 '24 08:12 robinzixuan

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

robinzixuan avatar Dec 19 '24 08:12 robinzixuan

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!

yingqianch avatar Dec 20 '24 09:12 yingqianch