spleeter icon indicating copy to clipboard operation
spleeter copied to clipboard

[Discussion] distutils has been deprecated, what is the workaround?

Open IJH91IJH91 opened this issue 1 year ago • 7 comments

ModuleNotFoundError: No module named 'distutils.msvccompiler'

How do we install Spleeter when it uses something that no longer exists?

IJH91IJH91 avatar Nov 03 '24 09:11 IJH91IJH91

~~Same issue~~

I solved this by downgrading Python to 3.8. It seemed like the issue was that spleeter requires numpy v1.18, which I believe requires python v3.9 or lower.

cindehaa avatar Nov 06 '24 03:11 cindehaa

Did you solve this problem? I also encountered this problem.

linganmin avatar Nov 24 '24 09:11 linganmin

Getting the following error while installing spleeter using pip. Screenshot 2024-11-30 at 2 59 39 AM

I am using python 3.9. Initially I used 3.13 and then tried to install python 3.8 as recommended by @cindehaa but it has been deprecated upstream. Hence settled for 3.9. I've also tried a bunch of solutions on the internet like installing setuptools (https://stackoverflow.com/questions/69919970/no-module-named-distutils-util-but-distutils-installed) but I'm still getting the same error.

Any help or guidance would be appreciated.

System: M2 macbook air, MacOS 15.1

parthpandey1 avatar Nov 29 '24 21:11 parthpandey1

Having same issue here: image

I tried installing setuptools as specified here and manually installing distutils with: sudo apt-get install --reinstall python3.11-distutils (working with Python 3.11) but none worked.

Would love to hear some news on this problem.

System: Ubuntu 22.04.5 LTS.

Thanks!!

ci21-cgarijo avatar Dec 02 '24 11:12 ci21-cgarijo

I'm having this problem.

UPDATE:

Solved by installing python 3.8.0 and uninstallying numpy. Performing pip install spleeter then automatically adds the depencies

ghost avatar Dec 21 '24 19:12 ghost

same problem.

solved: by using python 3.10 and putting this in the requirements file:

numpy<2 spleeter

loscrossos avatar Dec 27 '24 06:12 loscrossos

~Same issue~

I solved this by downgrading Python to 3.8. It seemed like the issue was that spleeter requires numpy v1.18, which I believe requires python v3.9 or lower.

This suggestion worked for me! I created a fresh conda environment with python==3.8.18, installed ffmpeg and libsndfile, and then could run pip install spleeter with no problem.

richa-namballa avatar Mar 14 '25 21:03 richa-namballa