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

Downloading sklearn-0.0.post12.tar.gz (2.6 kB) ERROR: Command errored out with exit status 1 ubuntu 20/python 3.8 #2

Open
johnfelipe opened this issue Dec 11, 2023 · 1 comment

Comments

@johnfelipe
Copy link

sudo apt install python3.8-venv

git clone https://github.com/marchcarax/Portfolio-stats
cd Portfolio-stats/
python3 -m venv env
source env/bin/activate

pip install -r requirements.txt

then in console

Collecting matplotlib
Using cached matplotlib-3.7.4-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (9.2 MB)
Collecting pandas
Using cached pandas-2.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.4 MB)
Collecting numpy
Using cached numpy-1.24.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
Collecting seaborn
Using cached seaborn-0.13.0-py3-none-any.whl (294 kB)
Collecting fpdf
Downloading fpdf-1.7.2.tar.gz (39 kB)
Collecting tensorflow
Downloading tensorflow-2.13.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (479.6 MB)
|████████████████████████████████| 479.6 MB 30 kB/s
Collecting pmdarima
Downloading pmdarima-2.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (2.2 MB)
|████████████████████████████████| 2.2 MB 14.3 MB/s
Collecting xgboost
Downloading xgboost-2.0.2-py3-none-manylinux2014_x86_64.whl (297.1 MB)
|████████████████████████████████| 297.1 MB 1.3 kB/s
Collecting sklearn
Downloading sklearn-0.0.post12.tar.gz (2.6 kB)
ERROR: Command errored out with exit status 1:
command: /root/Portfolio-stats/env/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0i16xzqi/sklearn/setup.py'"'"'; file='"'"'/tmp/pip-install-0i16xzqi/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 /tmp/pip-install-0i16xzqi/sklearn/pip-egg-info
cwd: /tmp/pip-install-0i16xzqi/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.

@johnfelipe
Copy link
Author

anyone?

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