Skip to content
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

deprecated pip package sklearn #765

Open
hero-intelligent opened this issue Aug 27, 2023 · 12 comments · May be fixed by #1311
Open

deprecated pip package sklearn #765

hero-intelligent opened this issue Aug 27, 2023 · 12 comments · May be fixed by #1311
Labels
dependencies Pull requests that update a dependency file Priority: High

Comments

@hero-intelligent
Copy link

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
------
@ste1590
Copy link

ste1590 commented Aug 27, 2023

Distro and Python version you have?

@hero-intelligent
Copy link
Author

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
Copy link
Author

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. #379 (comment)

@Anjok07 Anjok07 added Priority: High dependencies Pull requests that update a dependency file labels Sep 4, 2023
@MikuAuahDark
Copy link

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

@boredofnames
Copy link

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

@ste1590
Copy link

ste1590 commented Oct 4, 2023

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.

@chrisbward
Copy link

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

@MikuAuahDark
Copy link

MikuAuahDark commented Oct 18, 2023

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

@HeChengHui
Copy link

HeChengHui commented Oct 18, 2023

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

@mithusingh32
Copy link

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

#1068

@Krelyshy
Copy link

Same issue with Py 3.11.

@Pistos
Copy link

Pistos commented Apr 23, 2024

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

#from dora.log import fatal

and it's a commented out line.

@evezers evezers linked a pull request Apr 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Priority: High
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants