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

externally-managed-environment error on building docker image in the latest gdal docker image #55

Open
JinIgarashi opened this issue Oct 4, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JinIgarashi
Copy link
Contributor

After ghcr.io/osgeo/gdal:ubuntu-small-3.8.5 docker image, there is the below build issue in Dockerfile

12.55 error: externally-managed-environment
12.55 
12.55 × This environment is externally managed
12.55 ╰─> To install Python packages system-wide, try apt install
12.55     python3-xyz, where xyz is the package you are trying to
12.55     install.
12.55     
12.55     If you wish to install a non-Debian-packaged Python package,
12.55     create a virtual environment using python3 -m venv path/to/venv.
12.55     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
12.55     sure you have python3-full installed.
12.55     
12.55     If you wish to install a non-Debian packaged Python application,
12.55     it may be easiest to use pipx install xyz, which will manage a
12.55     virtual environment for you. Make sure you have pipx installed.
12.55     
12.55     See /usr/share/doc/python3.12/README.venv for more information.
12.55 
12.55 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.55 hint: See PEP 668 for the detailed specification.
------
failed to solve: process "/bin/sh -c apt-get update   && apt-get install -y --no-install-recommends   libffi-dev python3-pip   && rm -rf /var/lib/apt/lists/*   && pip3 install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1
@JinIgarashi JinIgarashi added the bug Something isn't working label Oct 4, 2024
@iferencik
Copy link
Contributor

An example of using pipenv to follow

https://github.com/UNDP-Data/geo-cogserver/blob/main/Dockerfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants