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

Update Dockerfile #67

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Naveenkumar453
Copy link

Getting following error

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. hint: See PEP 668 for the detailed specification.

So we need to add --break-system-packages to the command Source
https://stackoverflow.com/questions/75602063/pip-install-r-requirements-txt-is-failing-this-environment-is-externally-mana

Getting following error

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. hint: See PEP 668 for the detailed specification.

So we need to add --break-system-packages to the command
Source
https://stackoverflow.com/questions/75602063/pip-install-r-requirements-txt-is-failing-this-environment-is-externally-mana
@Naveenkumar453
Copy link
Author

HI Abhishek, Today in practice I have found while build DJANGO application there is error and we need to add
--break-system-packages in the Docker file to Build Package.
image

@priyaranjankumar
Copy link

@Naveenkumar453 Rather than adding --break-system-packages flag which can mess up the containers itself because some system dependencies. It's always a good practice to create a virtual environment for python.

You can refer the required changes here:-

a974a80

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

Successfully merging this pull request may close these issues.

2 participants