The sklearn PyPI package is deprecated use scikit-learn instead
Closed this issue · 2 comments
when installing latest version, the return messages show that the sklearn PyPI package is deprecated use scikit-learn instead.
thanks a lot. Now it works well. But the day before, when I was trying to install the latest version of pyLDAvis for the first time (not update). always be unsuccessful as the following warning:
Collecting pyLDAvis
Using cached pyLDAvis-3.3.1.tar.gz (1.7 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Requirement already satisfied: scikit-learn in c:\users\libb\appdata\roaming\python\python37\site-packages (from pyLDAvis) (1.0.2)
Requirement already satisfied: gensim in c:\users\libb\appdata\roaming\python\python37\site-packages (from pyLDAvis) (4.2.0)
Requirement already satisfied: setuptools in f:\windowsapps\pythonsoftwarefoundation.python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\site-packages (from pyLDAvis) (47.1.0)
Collecting future
Using cached future-1.0.0-py3-none-any.whl (491 kB)
Collecting numexpr
Using cached numexpr-2.8.6-cp37-cp37m-win_amd64.whl (94 kB)
Requirement already satisfied: joblib in c:\users\libb\appdata\roaming\python\python37\site-packages (from pyLDAvis) (1.3.2)
Requirement already satisfied: pandas>=1.2.0 in c:\users\libb\appdata\roaming\python\python37\site-packages (from pyLDAvis) (1.3.5)
Collecting funcy
Using cached funcy-2.0-py2.py3-none-any.whl (30 kB)
Requirement already satisfied: scipy in c:\users\libb\appdata\roaming\python\python37\site-packages (from pyLDAvis) (1.7.3)
Collecting sklearn
Using cached sklearn-0.0.post12.tar.gz (2.6 kB)
ERROR: Command errored out with exit status 1:
command: 'F:\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\libb\\AppData\\Local\\Temp\\pip-install-l24_x4nf\\sklearn\\setup.py'"'"'; __file__='"'"'C:\\Users\\libb\\AppData\\Local\\Temp\\pip-install-l24_x4nf\\sklearn\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\libb\AppData\Local\Temp\pip-pip-egg-info-e4zbfqba'
cwd: C:\Users\libb\AppData\Local\Temp\pip-install-l24_x4nf\sklearn\
Complete output (15 lines):
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
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.1.1; however, version 24.0 is available.
You should consider upgrading via the 'F:\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\python.exe -m pip install --upgrade pip' command.
anyway, thank again