AIGC-Audio / AudioGPT

AudioGPT: Understanding and Generating Speech, Music, Sound, and Talking Head
https://huggingface.co/spaces/AIGC-Audio/AudioGPT
Other
10.05k stars 863 forks source link

Can't install espnet #28

Open agarrubio opened 1 year ago

agarrubio commented 1 year ago

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)
murali1999-tech commented 1 year ago

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.

agarrubio commented 1 year ago

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!