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

Error on installation - sklearn deprecated #6

Open
bergomel opened this issue Apr 21, 2024 · 0 comments
Open

Error on installation - sklearn deprecated #6

bergomel opened this issue Apr 21, 2024 · 0 comments

Comments

@bergomel
Copy link

Collecting pyECG
Using cached pyECG-0.0.9.1-py2.py3-none-any.whl.metadata (3.1 kB)
Collecting ishneholterlib==2017.4.11 (from pyECG)
Using cached ishneholterlib-2017.4.11.tar.gz (7.0 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pyECG) (1.26.2)
Collecting wfdb==2.2.1 (from pyECG)
Using cached wfdb-2.2.1.tar.gz (94 kB)
Preparing metadata (setup.py) ... done
Collecting pytest (from pyECG)
Using cached pytest-8.1.1-py3-none-any.whl.metadata (7.6 kB)
Collecting pytest-cov (from pyECG)
Using cached pytest_cov-5.0.0-py3-none-any.whl.metadata (27 kB)
Collecting PyCRC (from ishneholterlib==2017.4.11->pyECG)
Using cached pycrc-0.10.0-py3-none-any.whl.metadata (2.7 kB)
Collecting nose>=1.3.7 (from wfdb==2.2.1->pyECG)
Using cached nose-1.3.7-py3-none-any.whl.metadata (1.7 kB)
Requirement already satisfied: matplotlib>=1.5.1 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from wfdb==2.2.1->pyECG) (3.8.2)
Requirement already satisfied: requests>=2.10.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from wfdb==2.2.1->pyECG) (2.31.0)
Requirement already satisfied: pandas>=0.19.1 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from wfdb==2.2.1->pyECG) (2.1.4)
Requirement already satisfied: scipy>=0.19.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from wfdb==2.2.1->pyECG) (1.11.4)
Collecting sklearn>=0.0 (from wfdb==2.2.1->pyECG)
Using cached sklearn-0.0.post12.tar.gz (2.6 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant