Windows environment installation guide to avoid pitfalls
The following solutions are provided for typical problems that Windows users may encounter:
1. OSError: [WinError 126] issue
- Install the libuv library via Anaconda:
conda install conda-forge::libuv
- Or manually download the dll file into the System32 directory.
2. PyTorch GPU version installation failure
- Install the CPU version first:
pip install torch torchaudio --index-url https://download.pytorch.org/whl/cpu
- Confirm that the CUDA version matches and then install the corresponding GPU version.
3. Virtual environment activation failure
- You need to execute it first when using Powershell:
Set-ExecutionPolicy RemoteSigned
- Or run the activation script at the CMD command prompt instead
4. Reliance on conflict resolution
- New virtual environment:
python -m venv --clear demucs_env
- Specify the version at the time of installation:
pip install demucs==3.0.4
Docker images are recommended as an alternate solution:docker pull adefossez/demucs
Environment configuration can be eliminated.
This answer comes from the articleDemucs: free open source tool for separating music tracksThe