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

errors when trying to build docker file from pip and requirements.txt #114

Open
mycomedico opened this issue Mar 24, 2024 · 0 comments
Open

Comments

@mycomedico
Copy link

`=> ERROR [6/6] RUN pip install -r requirements.txt 1.2s

[6/6] RUN pip install -r requirements.txt:
0.445 Collecting nose (from -r requirements.txt (line 1))
0.642 Downloading https://files.pythonhosted.org/packages/15/d8/dd071918c040f50fa1cf80da16423af51ff8ce4a0f2399b7bf8de45ac3d9/nose-1.3.7-py3-none-any.whl (154kB)
0.710 Collecting sklearn (from -r requirements.txt (line 2))
0.811 Downloading https://files.pythonhosted.org/packages/46/1c/395a83ee7b2d2ad7a05b453872053d41449564477c81dc356f720b16eac4/sklearn-0.0.post12.tar.gz
0.950 ERROR: Command errored out with exit status 1:
0.950 command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-c7ifon1i/sklearn/setup.py'"'"'; file='"'"'/tmp/pip-install-c7ifon1i/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 pip-egg-info
0.950 cwd: /tmp/pip-install-c7ifon1i/sklearn/
0.950 Complete output (15 lines):
0.950 The 'sklearn' PyPI package is deprecated, use 'scikit-learn'
0.950 rather than 'sklearn' for pip commands.
0.950
0.950 Here is how to fix this error in the main use cases:
0.950 - use 'pip install scikit-learn' rather than 'pip install sklearn'
0.950 - replace 'sklearn' by 'scikit-learn' in your pip requirements files
0.950 (requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
0.950 - if the 'sklearn' package is used by one of your dependencies,
0.950 it would be great if you take some time to track which package uses
0.950 'sklearn' instead of 'scikit-learn' and report it to their issue tracker
0.950 - as a last resort, set the environment variable
0.950 SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error
0.950
0.950 More information is available at
0.950 https://github.com/scikit-learn/sklearn-pypi-package
0.950 ----------------------------------------
0.958 ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
1.137 WARNING: You are using pip version 19.2.3, however version 21.3.1 is available.
1.137 You should consider upgrading via the 'pip install --upgrade pip' command.


Dockerfile.cpu:20

18 | WORKDIR /src
19 |
20 | >>> RUN pip install -r requirements.txt
21 |
22 | ENV PYTHONPATH='/src/:$PYTHONPATH'

ERROR: failed to solve: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1
`

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