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

sklean has been deprecated. scikit-learn should be used instead #23

Open
tapyu opened this issue Apr 24, 2024 · 1 comment
Open

sklean has been deprecated. scikit-learn should be used instead #23

tapyu opened this issue Apr 24, 2024 · 1 comment
Assignees
Labels
test--current-version please test again in the current version

Comments

@tapyu
Copy link

tapyu commented Apr 24, 2024

❯ poetry add pretty-confusion-matrix
Using version ^0.1.1 for pretty-confusion-matrix

Updating dependencies
Resolving dependencies... (7.5s)

Package operations: 2 installs, 0 updates, 0 removals

  • Installing sklearn (0.0.post12): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke get_requires_for_build_wheel

  The 'sklearn' PyPI package is deprecated, use 'scikit-learn'
  rather than 'sklearn' for pip commands.

  Here is how to fix this error in the main use cases:
  - use 'pip install scikit-learn' rather than 'pip install sklearn'
  - replace 'sklearn' by 'scikit-learn' in your pip requirements files
    (requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
  - if the 'sklearn' package is used by one of your dependencies,
    it would be great if you take some time to track which package uses
    'sklearn' instead of 'scikit-learn' and report it to their issue tracker
  - as a last resort, set the environment variable
    SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error

  More information is available at
  https://github.com/scikit-learn/sklearn-pypi-package


  at ~/.local/lib/python3.10/site-packages/poetry/installation/chef.py:166 in _prepare
      162│
      163│                 error = ChefBuildError("\n\n".join(message_parts))
      164│
      165│             if error is not None:
    → 166│                 raise error from None
      167│
      168│             return path
      169│
      170│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with sklearn (0.0.post12) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "sklearn (==0.0.post12)"'.

@wcipriano
Copy link
Owner

Hello @tapyu !
Thank you for your report !

This deprecated warning was solved in this commit of this week.

I released the new version (0.2.0), and It's available in the official PyPI, check here.

Please, update your version !

Best regards ;)

@wcipriano wcipriano added the test--current-version please test again in the current version label May 9, 2024
@wcipriano wcipriano self-assigned this May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test--current-version please test again in the current version
Projects
None yet
Development

No branches or pull requests

2 participants