facebookresearch / audiocraft

Audiocraft is a library for audio processing and generation with deep learning. It features the state-of-the-art EnCodec audio compressor / tokenizer, along with MusicGen, a simple and controllable music generation LM with textual and melodic conditioning.
MIT License
20.15k stars 2.01k forks source link

Cannot install torch 2.1.0 as dependencies as this is deprecated #463

Open Shengguang-Zhou opened 1 month ago

Shengguang-Zhou commented 1 month ago

I was trying to pip install thru following command and had following error:

(.venv)(base) ~/PycharmProjects/musicGeneration git:[master] python3 -m pip install -U git+https://github.com/facebookresearch/audiocraft#egg=audiocraft Collecting audiocraft Cloning https://github.com/facebookresearch/audiocraft to /tmp/pip-install-53xg7lqu/audiocraft_351d39e2e483418c92732d6aa7e5699b Running command git clone --filter=blob:none --quiet https://github.com/facebookresearch/audiocraft /tmp/pip-install-53xg7lqu/audiocraft_351d39e2e483418c92732d6aa7e5699b

Resolved https://github.com/facebookresearch/audiocraft to commit 72cb16f9fb239e9cf03f7bd997198c7d7a67a01c Preparing metadata (setup.py) ... done Collecting av==11.0.0 (from audiocraft) Using cached av-11.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.5 kB) Collecting einops (from audiocraft) Using cached einops-0.8.0-py3-none-any.whl.metadata (12 kB) Collecting flashy>=0.0.1 (from audiocraft) Using cached flashy-0.0.2.tar.gz (72 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting hydra-core>=1.1 (from audiocraft) Using cached hydra_core-1.3.2-py3-none-any.whl.metadata (5.5 kB) Collecting hydra_colorlog (from audiocraft) Using cached hydra_colorlog-1.2.0-py3-none-any.whl.metadata (949 bytes) Collecting julius (from audiocraft) Using cached julius-0.2.7.tar.gz (59 kB) Preparing metadata (setup.py) ... done Collecting num2words (from audiocraft) Using cached num2words-0.5.13-py3-none-any.whl.metadata (12 kB) Requirement already satisfied: numpy in ./.venv/lib/python3.12/site-packages (from audiocraft) (1.26.4) Collecting sentencepiece (from audiocraft) Using cached sentencepiece-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (7.7 kB) Collecting spacy>=3.6.1 (from audiocraft) Using cached spacy-3.7.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (27 kB) INFO: pip is looking at multiple versions of audiocraft to determine which version is compatible with other requirements. This could take a while. ERROR: Could not find a version that satisfies the requirement torch==2.1.0 (from audiocraft) (from versions: 2.2.0, 2.2.1, 2.2.2, 2.3.0)

ERROR: No matching distribution found for torch==2.1.0