AIGC-Audio / AudioGPT

AudioGPT: Understanding and Generating Speech, Music, Sound, and Talking Head

Home Page:https://huggingface.co/spaces/AIGC-Audio/AudioGPT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't install espnet

agarrubio opened this issue · comments

During pip install -r requirements.txt, I get this error:

ERROR: Packages installed from PyPI cannot depend on packages which are not also hosted on PyPI.
espnet depends on torch-complex@ git+https://github.com/kamo-naoyuki/pytorch_complex.git 

However, manually installing torch-complex with pip install torch-complex, prints:

Requirement already satisfied: torch-complex in /home/alejandro/mambaforge/envs/audiogpt/lib/python3.8/site-packages (0.4.3)
Requirement already satisfied: numpy in /home/alejandro/mambaforge/envs/audiogpt/lib/python3.8/site-packages (from torch-complex) (1.22.4)

The error message you received suggests that espnet package that is listed in the requirements.txt file has a dependency on torch-complex that is not hosted on PyPI (Python Package Index). However, you have already installed torch-complex using pip and it seems to be working fine.

In this case, you can try modifying the requirements.txt file to remove the version of torch-complex that is causing the issue. You can do this by removing the following line:

git+https://github.com/kamo-naoyuki/pytorch_complex.git

Then, try running pip install -r requirements.txt again to see if it works. If espnet package really requires torch-complex from Github, you can try installing it manually from the Github repository by running:

pip install git+https://github.com/kamo-naoyuki/pytorch_complex.git

Make sure to activate the correct environment before running this command.

Many thanks for your reply. However, in requirements.txt there is no line:

git+https://github.com/kamo-naoyuki/pytorch_complex.git

I have tried many other things. I have finally given up on audiogpt. Thanks anyway!