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

[BUG]: Cant install PyCaret from version 2.3.6 to 2.3.10 #3451

Closed
1 of 3 tasks
EdgarEAM opened this issue Apr 3, 2023 · 4 comments
Closed
1 of 3 tasks

[BUG]: Cant install PyCaret from version 2.3.6 to 2.3.10 #3451

EdgarEAM opened this issue Apr 3, 2023 · 4 comments

Comments

@EdgarEAM
Copy link

EdgarEAM commented Apr 3, 2023

pycaret version checks

Issue Description

Cant install PyCaret from version 2.3.6 to 2.3.10 due pip PyCaret tries install sklearn which says is deprecated and recommend use scikit-learn. I have tried install scikit-learn successfully however trying to install again pip PyCaret bring again to the same problem. How can go around this problem?

That problem I didn't find while installing PyCaret 2.3.5
Please, help

Screenshot_4

Reproducible Example

pip install pycaret==2.3.10
pip install pycaret==2.3.9
pip install pycaret==2.3.8
pip install pycaret==2.3.7
pip install pycaret==2.3.6

Expected Behavior

Successful pip PyCaret installation from mentioned versions

Actual Results

Collecting sklearn
  Using cached sklearn-0.0.post1.tar.gz (3.6 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      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

      If the previous advice does not cover your use case, feel free to report it at
      https://github.com/scikit-learn/sklearn-pypi-package/issues/new
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Installed Versions

'2.3.10' '2.3.9' '2.3.8' '2.3.7' '2.3.6'
@EdgarEAM EdgarEAM added the bug Something isn't working label Apr 3, 2023
@ngupta23
Copy link
Collaborator

ngupta23 commented Apr 4, 2023

This issue is fixed in pycaret version 3.0.0. Can you install this version and check?

@ngupta23 ngupta23 added installation and removed bug Something isn't working labels Apr 4, 2023
@EdgarEAM
Copy link
Author

EdgarEAM commented Apr 4, 2023

Its working, installed 2.3.10
Thank you

@EdgarEAM EdgarEAM closed this as completed Apr 4, 2023
@Shakib-IO
Copy link

Shakib-IO commented Apr 28, 2023

Still facing the same issue. Couldn't install 2.3.6 version because of some dependencies. @EdgarEAM @ngupta23

@ngupta23
Copy link
Collaborator

Try installing the latest version > 3.0.0 since it comes with a smaller dependency footprint.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants