Docker-in-docker - [Bug fix] : Fix externally-managed-environment python error for "bookworm" - #833
Merged
Samruddhi Khandale (samruddhikhandale) merged 2 commits intoFeb 8, 2024
Conversation
…hon error for "bookworm"
Samruddhi Khandale (samruddhikhandale)
requested a review
from a team
as a code owner
February 6, 2024 22:05
Christof Marti (chrmarti)
approved these changes
Feb 8, 2024
Samruddhi Khandale (samruddhikhandale)
deleted the
samruddhikhandale/dnd-python
branch
February 8, 2024 17:16
Contributor
|
Samruddhi Khandale (@samruddhikhandale) I think this should also be ported to docker-outside-of-docker, isn't it? NOTE: I'm currently getting following error when installing docker-outside-of-docker on a Docker container based on mcr.microsoft.com/devcontainers/base:bookworm for arm64 architecture. #12 90.97 error: externally-managed-environment
#12 90.97
#12 90.97 × This environment is externally managed
#12 90.97 ╰─> To install Python packages system-wide, try apt install
#12 90.97 python3-xyz, where xyz is the package you are trying to
#12 90.97 install.
#12 90.97
#12 90.97 If you wish to install a non-Debian-packaged Python package,
#12 90.97 create a virtual environment using python3 -m venv path/to/venv.
#12 90.97 Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
#12 90.97 sure you have python3-full installed.
#12 90.97
#12 90.97 If you wish to install a non-Debian packaged Python application,
#12 90.97 it may be easiest to use pipx install xyz, which will manage a
#12 90.97 virtual environment for you. Make sure you have pipx installed.
#12 90.97
#12 90.97 See /usr/share/doc/python3.11/README.venv for more information.
#12 90.97
#12 90.97 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.
#12 90.97 hint: See PEP 668 for the detailed specification. |
Ruben Suarez Alvarez (rubensa)
added a commit
to rubensa/docker-devcontainers-cli
that referenced
this pull request
Sep 12, 2024
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.
Closes: #832
Changes needed to the "docker-in-docker" Feature post Debian bookworm / PEP 668
If OS is bookworm, install from git releases instead.