xuyaoxun / MuCodec

MIT License
48 stars 3 forks source link

Unable to install requirements correctly #3

Open Pincel opened 1 week ago

Pincel commented 1 week ago

pls help provide pip version

using python==3.8.12 i have tested serval pip version all failed such as using pip=21.2.4:

ERROR: Cannot install -r requirements.txt (line 20) and hydra-core==1.0.7 because these package versions have conflicting dependencies.

The conflict is caused by: The user requested hydra-core==1.0.7 audiocraft 1.2.0 depends on hydra-core>=1.1

xuyaoxun commented 1 week ago

Thank you for your inquiry! We have updated the requirements.txt file to resolve the dependency conflicts. You can now use the latest requirements.txt for your environment setup.

Pincel commented 6 days ago

Thank you for your inquiry! We have updated the requirements.txt file to resolve the dependency conflicts. You can now use the latest requirements.txt for your environment setup.

Wow, great quick fix, I tried the newer version and the old error is gone but it seems to be reporting new issues

1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1) ERROR: No matching distribution found for torch==2.2.0+cu118 (from -r requirements.txt (line 288)) (MuCodec_env) root@DESKTOP-FI10FV3:/mnt/e/workspace/AI/MuCodec-master# pip --version pip 19.3.1 from /root/miniconda3/envs/MuCodec_env/lib/python3.8/site-packages/pip (python 3.8) (MuCodec_env) root@DESKTOP-FI10FV3:/mnt/e/workspace/AI/MuCodec-master# python --version Python 3.8.12

I was able to fix blew, but I'm sure others will run into this problem as well: pip install torch==2.2.0+cu118 -f https://download.pytorch.org/whl/torch_stable.html

If that's normal for you, I suspect it's caused by the difference in pip versions. What version are you using? python==3.8.12 & pip==21.2.4 ?

In addition, this repo does not show how to train MuCodec.pt with your own data. Am I missing something?