asteroid-team / asteroid

The PyTorch-based audio source separation toolkit for researchers
https://asteroid-team.github.io/
MIT License
2.26k stars 422 forks source link

Unable to install pesq (pip & conda) #564

Closed DanDor90 closed 2 years ago

DanDor90 commented 3 years ago

❓ Questions and Help

Hi, I am unable to install asteroid via pip or conda due to an error with the pesq dependency on windows 10.

Pip:

git clone https://github.com/asteroid-team/asteroid
cd asteroid
pip install -e .

all dependencies are installed except for pesq:

  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  ----------------------------------------
  ERROR: Failed building wheel for pesq

Microsoft Visual C++ 14.30 is already installed on my machine. Same result if I try:

pip install Cython
pip install numpy
pip install asteroid

Conda:

cd asteroid
conda env create -f environment.yml

yields

ERROR: Could not open requirements file: [Errno 2] No such file or directory: '/requirements/install.txt'

which I solved by modifiying 'environment.yml' following #552. However, If I re-create the environment, this is what I get:

ERROR: Command errored out with exit status 1: 'C:\Users\danie\miniconda3\envs\asteroid\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\danie\\AppData\\Local\\Temp\\pip-install-_g70cfp8\\pesq\\setup.py'"'"'; __file__='"'"'C:\\Users\\danie\\AppData\\Local\\Temp\\pip-install-_g70cfp8\\pesq\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\danie\AppData\Local\Temp\pip-record-tiziox2k\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\danie\miniconda3\envs\asteroid\Include\pesq' Check the logs for full command output.

failed

CondaEnvException: Pip failed

Any idea or suggestion would be highly appreciated.

cemox35 commented 3 years ago

You can install with pip install asteroid in the anaconda command prompt.

DanDor90 commented 3 years ago

You can install with pip install asteroid in the anaconda command prompt.

Yes, the lines

pip install Cython
pip install numpy
pip install asteroid

were typed in the anaconda prompt

cemox35 commented 3 years ago

You can install with pip install asteroid in the anaconda command prompt.

Yes, the lines

pip install Cython
pip install numpy
pip install asteroid

were typed in the anaconda prompt

I think, you don't need to the "conda env create -f environment.yml". I am using now the asteroid with only writing in anaconda prompt "pip install asteroid". If you did this in base env, you can create new env in anaconda prompt, then write "pip install asteroid". Lastly, I installed pytorch with "conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch". It's done for me.

AIluckyboy commented 2 years ago

Hi,How did you solve this problem? I encountered the same situation as you. ERROR:failed bulding wheel for pesq building wheel for pesq(setpu.py)...error

mpariente commented 2 years ago

This is not an issue with asteroid, but with pesq, sorry about that. Closing the issue.