facebookresearch / demucs

Code for the paper Hybrid Spectrogram and Waveform Source Separation
MIT License
8.41k stars 1.08k forks source link

CondaEnvException: Pip failed #211

Open argentinosaurio opened 3 years ago

argentinosaurio commented 3 years ago

❓ Questions

how fix this?

(Please ask your q 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: Command errored out with exit status 1: 'C:\Users\Usuario\anaconda3\envs\demucs\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Usuario\AppData\Local\Temp\pip-install-awfbsdso\diffq_5d0d8239935142e0a0efc1ed7d13e793\setup.py'"'"'; file='"'"'C:\Users\Usuario\AppData\Local\Temp\pip-install-awfbsdso\diffq_5d0d8239935142e0a0efc1ed7d13e793\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Usuario\AppData\Local\Temp\pip-record-mqfia5kx\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Usuario\anaconda3\envs\demucs\Include\diffq' Check the logs for full command output.uestion here.) failed

CondaEnvException: Pip failed

adefossez commented 3 years ago

Sorry about that, can you try to run

git pull
conda env update -f environment-cpu.yml

and see if it works now ?

CarlGao4 commented 2 years ago

It seems that the install process requires compiling. Or just try installing MS Visual Studio here. Remember to check C++ when installing.

adefossez commented 2 years ago

It is weird that it requires compilation. There should be pre-built distributions for the diffq packages on windows. Could you give me the full output of conda activate; python.exe -m pip install diffq ?