Skip to content

default devcontainer can't be build #25

@StephanKa

Description

@StephanKa
 > [dev_container_auto_added_stage_label  3/18] RUN python3 -m pip install conan && conan --version:
#7 1.538 error: externally-managed-environment
#7 1.538 
#7 1.538 × This environment is externally managed
#7 1.538 ╰─> To install Python packages system-wide, try apt install
#7 1.538     python3-xyz, where xyz is the package you are trying to
#7 1.538     install.
#7 1.538     
#7 1.538     If you wish to install a non-Debian-packaged Python package,
#7 1.538     create a virtual environment using python3 -m venv path/to/venv.
#7 1.538     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
#7 1.538     sure you have python3-full installed.
#7 1.538     
#7 1.538     If you wish to install a non-Debian packaged Python application,
#7 1.538     it may be easiest to use pipx install xyz, which will manage a
#7 1.538     virtual environment for you. Make sure you have pipx installed.
#7 1.538     
#7 1.538     See /usr/share/doc/python3.11/README.venv for more information.
#7 1.538 
#7 1.538 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.
#7 1.538 hint: See PEP 668 for the detailed specification.

EDIT: policy shift in Ubuntu >= 23.04: https://www.omgubuntu.co.uk/2023/04/pip-install-error-externally-managed-environment-fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions