ultimatevocalremovergui icon indicating copy to clipboard operation
ultimatevocalremovergui copied to clipboard

deprecated pip package `sklearn`

Open hero-intelligent opened this issue 1 year ago • 12 comments

sklearn is a deprecated pip package. Please update to scikit-learn instead. Error logs are as follows:

45.02 Collecting sklearn
45.09   Downloading sklearn-0.0.post7.tar.gz (3.6 kB)
45.10   Preparing metadata (setup.py): started
45.37   Preparing metadata (setup.py): finished with status 'error'
45.37   error: subprocess-exited-with-error
45.37   
45.37   × python setup.py egg_info did not run successfully.
45.37   │ exit code: 1
45.37   ╰─> [18 lines of output]
45.37       The 'sklearn' PyPI package is deprecated, use 'scikit-learn'
45.37       rather than 'sklearn' for pip commands.
45.37       
45.37       Here is how to fix this error in the main use cases:
45.37       - use 'pip install scikit-learn' rather than 'pip install sklearn'
45.37       - replace 'sklearn' by 'scikit-learn' in your pip requirements files
45.37         (requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
45.37       - if the 'sklearn' package is used by one of your dependencies,
45.37         it would be great if you take some time to track which package uses
45.37         'sklearn' instead of 'scikit-learn' and report it to their issue tracker
45.37       - as a last resort, set the environment variable
45.37         SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error
45.37       
45.37       More information is available at
45.37       https://github.com/scikit-learn/sklearn-pypi-package
45.37       
45.37       If the previous advice does not cover your use case, feel free to report it at
45.37       https://github.com/scikit-learn/sklearn-pypi-package/issues/new
45.37       [end of output]
45.37   
45.37   note: This error originates from a subprocess, and is likely not a problem with pip.
45.37 error: metadata-generation-failed
45.37 
45.37 × Encountered error while generating package metadata.
45.37 ╰─> See above for output.
45.37 
45.37 note: This is an issue with the package mentioned above, not pip.
45.37 hint: See above for details.
45.77 
45.77 [notice] A new release of pip is available: 23.0.1 -> 23.2.1
45.77 [notice] To update, run: pip install --upgrade pip
------

hero-intelligent avatar Aug 27 '23 08:08 hero-intelligent

Distro and Python version you have?

ste1590 avatar Aug 27 '23 09:08 ste1590

Distro and Python version you have?

sklearn is a deprecated pip package. Please update to scikit-learn instead.

Oh, problem solved. just pip install scikit-learn before pip install -r requirements.txt

hero-intelligent avatar Aug 28 '23 00:08 hero-intelligent

Distro and Python version you have?

sklearn is a deprecated pip package. Please update to scikit-learn instead.

Oh, problem solved. just pip install scikit-learn before pip install -r requirements.txt

These are my steps. https://github.com/Anjok07/ultimatevocalremovergui/issues/379#issuecomment-1694905668

hero-intelligent avatar Aug 28 '23 02:08 hero-intelligent

Dora depends on sklearn (not scikit-learn). Might worth filling issue to that package instead.

MikuAuahDark avatar Sep 30 '23 04:09 MikuAuahDark

The repo seems dead, as it hasn't been updated in over 3 years. However, there was a PR recently updating the package in question. A possible solution is to install from that forked repo.

pip install https://github.com/soudabot/Dora/archive/refs/heads/master.zip

boredofnames avatar Oct 04 '23 06:10 boredofnames

For me, it works just fine on Debian Sid. I tried to install it in several ways but since I am on a rolling release distro, I set up python for UVR via pyenv and I fixed the python version to 3.10.12. But even if you don't use pyenv and If you get an error regarding sklearn-pypi during pip3 install -r requirements.txt you just need to remove folder sklearn from /home/.local/lib/python/site-packages, then you need to run the command again and it will download and install sklearn without error. I tried this several times and on different distros, and it always works ok.

ste1590 avatar Oct 04 '23 09:10 ste1590

The repo seems dead, as it hasn't been updated in over 3 years. However, there was a PR recently updating the package in question. A possible solution is to install from that forked repo.

pip install https://github.com/soudabot/Dora/archive/refs/heads/master.zip

404

chrisbward avatar Oct 16 '23 07:10 chrisbward

Current workaround is to set environment variable SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True before installing.

MikuAuahDark avatar Oct 18 '23 04:10 MikuAuahDark

Might be python version on linux. I got the same error on py3.10, but is gone using py3.8.

HeChengHui avatar Oct 18 '23 09:10 HeChengHui

I created a PR that fixes a few issues related to this.

#1068

mithusingh32 avatar Dec 31 '23 18:12 mithusingh32

Same issue with Py 3.11.

Krelyshy avatar Jan 14 '24 11:01 Krelyshy

I just removed Dora from the requirements.txt file. The only reference to the (whole) word dora is

https://github.com/Anjok07/ultimatevocalremovergui/blob/c975f04885a217aec8c06223c4b2508ca4956c6a/demucs/pretrained.py#L13

and it's a commented out line.

Pistos avatar Apr 23 '24 01:04 Pistos