prevent RUN pip3 install build error#28
Open
diranetafen wants to merge 1 commit intoheroku:masterfrom
Open
Conversation
…ailed heroku#8 [4/7] RUN pip3 install --no-cache-dir -q -r /tmp/requirements.txt heroku#8 2.007 error: externally-managed-environment heroku#8 2.007 heroku#8 2.007 �� This environment is externally managed heroku#8 2.007 ������> heroku#8 2.007 The system-wide python installation should be maintained using the system heroku#8 2.007 package manager (apk) only. heroku#8 2.007 heroku#8 2.007 If the package in question is not packaged already (and hence installable via heroku#8 2.007 "apk add py3-somepackage"), please consider installing it inside a virtual heroku#8 2.007 environment, e.g.: heroku#8 2.007 heroku#8 2.007 python3 -m venv /path/to/venv heroku#8 2.007 . /path/to/venv/bin/activate heroku#8 2.007 pip install mypackage heroku#8 2.007 heroku#8 2.007 To exit the virtual environment, run: heroku#8 2.007 heroku#8 2.007 deactivate heroku#8 2.007 heroku#8 2.007 The virtual environment is not deleted, and can be re-entered by re-sourcing heroku#8 2.007 the activate file. heroku#8 2.007 heroku#8 2.007 To automatically manage virtual environments, consider using pipx (from the heroku#8 2.007 pipx package). heroku#8 2.007 heroku#8 2.007 note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. heroku#8 2.007 hint: See PEP 668 for the detailed specification. heroku#8 ERROR: process "/bin/sh -c pip3 install --no-cache-dir -q -r /tmp/requirements.txt" did not complete successfully: exit code: 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
prevent this build error by using working alpine image without update application code
#8 [4/7] RUN pip3 install --no-cache-dir -q -r /tmp/requirements.txt #8 2.007 error: externally-managed-environment
#8 2.007
#8 2.007 �� This environment is externally managed #8 2.007 ������>
#8 2.007 The system-wide python installation should be maintained using the system
#8 2.007 package manager (apk) only.
#8 2.007
#8 2.007 If the package in question is not packaged already (and hence installable via
#8 2.007 "apk add py3-somepackage"), please consider installing it inside a virtual
#8 2.007 environment, e.g.:
#8 2.007
#8 2.007 python3 -m venv /path/to/venv
#8 2.007 . /path/to/venv/bin/activate
#8 2.007 pip install mypackage
#8 2.007
#8 2.007 To exit the virtual environment, run:
#8 2.007
#8 2.007 deactivate
#8 2.007
#8 2.007 The virtual environment is not deleted, and can be re-entered by re-sourcing
#8 2.007 the activate file.
#8 2.007
#8 2.007 To automatically manage virtual environments, consider using pipx (from the
#8 2.007 pipx package).
#8 2.007
#8 2.007 note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
#8 2.007 hint: See PEP 668 for the detailed specification.
#8 ERROR: process "/bin/sh -c pip3 install --no-cache-dir -q -r /tmp/requirements.txt" did not complete successfully: exit code: 1