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

Current docker fails pip install without --break-system-packages #11

Open
Jondeen opened this issue Feb 10, 2025 · 0 comments
Open

Current docker fails pip install without --break-system-packages #11

Jondeen opened this issue Feb 10, 2025 · 0 comments

Comments

@Jondeen
Copy link

Jondeen commented Feb 10, 2025

Hi,

PEP 668 prevents pip from overwriting system-managed packages by default, ensuring stability and integrity of the system Python environment. To bypass this safeguard, users must explicitly pass --break-system-packages during installation.

As a result of this, docker build currently fails.

As alluded to in the README, a venv is recommended when installing python packages (partly to overcome these hurdles). Seeing as the Docker enviroment is a single utility environment, it might be fine to use --break-system-packages, but it might be even better to adapt the Dockerfile to use a venv for its python environment.

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