-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demucs No-Longer Installable via PIP Since Python 3.10 #286
Comments
Can you try the following:
|
That gets much further... but now fails on a dependency.
|
Temporary fix would be to use Anaconda to get python3.9. Building locally |
there should be |
The legacy option (python -m pip install --use-deprecated legacy-resolver demucs) no-longer works:
Trying without legacy now does work, but again fails on another dependency. "dora_search" this time it seems:
|
I logged a ticket there (facebookresearch/dora#18) then realised you're a contributor of that repo so that was probably redundant, lol. |
The core issue is actually that torch is not available on python 3.10 at the moment, Honestly for deep learning tools, you shouldn't expect being able to use bleeding edge versions of Python. It always takes a bit of time for all the frameworks to adapt, and I know I personally stopped at 3.8 to avoid running into those issues. Things like Google Colab are typically running quite old versions of Python (e.g. 3.8) and sticking to that one means I'm sure I can ship to Colab easily. |
See PyTorch task: pytorch/pytorch#66424 (comment) |
Unfortunately even when running with python 3.9 inside Docker on a Mac M1, this is still happening. I believe this is also an issue with running Demucs in a Docker container on Mac M1 machines , because I could also have traced my errors wrong. It doesn't appear that pytorch has an arm64 build available on linux either so.... |
I found a way to get demucs to install on Python 3.10 and 3.11 First, install FFmpeg:
Then, install pytorch this way: CPU: Next, install SoundFile:
EDIT: forgot to mention you have to install Sox on Linux instead of SoundFile:
Finally, install demucs this way: (thank you @adefossez)
Everything should be installed and working fine. @Ma5onic can this be added to README.md? |
For those using Poetry and WSL2 (Ubuntu): FFmpeg: poetry add ffmpeg CUDA 11.8: poetry source add --priority=explicit pytorch-gpu-src https://download.pytorch.org/whl/test/cu118
poetry add --source pytorch-gpu-src torch torchvision torchaudio Sox: poetry add sox Demucs: poetry add demucs This works wonderfully, the GPU utilization always reaches 100% during separation. |
(Hasn't this issue been fixed?) |
When I install demucs without any prior installations in a fresh virtual environment (WSL2, Ubuntu), it throws |
when run command, I have bug: |
Can you install with PIP? |
PIP should work normally last time I checked. In other words, if you are using Poetry, install all other dependencies normally. For |
This is not the correct way to install torch. torch is going to release 2.2.0, which is not and also will probably not supported, so you'd better follow the instructions at https://pytorch.org/get-started/previous-versions/#v211 |
Follow this instructions for cuda 11.8 and run the poetry correctly. poetry add torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 Use python 3.11.6 version. |
Tried to follow your instructions but can't go thru this error. I'm actually trying to
|
🐛 Bug Report
I don't think I'm doing anything stupid here. Demucs worked fine with Python 3.9 and happily installed via PIP. But since Python 3.10 came out, it doesn't appear to work via PIP anymore.
To Reproduce
Run "python -m pip install -U demucs" or "pip install demucs"
Expected behavior
To get the usual PIP installation progress bars, messages and for it to install with dependencies.
Actual Behavior
A lot of errors:
Your Environment
The text was updated successfully, but these errors were encountered: