Correct way to install python libraries using requirements file
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start with the Dockerfile and requirements.txt installation commands shown in the issue, then reproduce the externally-managed-environment error with the Odoo 18 image. Compare supported dependency-installation approaches and confirm the selected approach builds successfully without the reported error.
Written by the indexing model from the issue text.
Description
Hello everyone, When working with the new version of Odoo 18 I checked that the docker file was modified based on the image with which it is working. This led to my old lines to add python libraries no longer working due to an error that says the following
error: externally-managed-environment
# Copy and install python dependencies
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt# Copy and install python dependencies
Previously they used to use these lines to achieve this. Does anyone know what is the best way to continue using a requirements file and be able to install the python libraries?
I found that using the following line I can skip the restriction but do you think it is correct or what is the best way to manage the libraries?
RUN pip3 install --no-cache-dir --break-system-packages -r requirements.txt
- Dominant language
- Dockerfile
- Stars
- 1.2k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from odoo/docker
-
Difficulty 1/5 Under an hour Newbie friendliness 70/100
-
Missing PyJWT ?Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
Similar issues
-
feature request needs triage
Difficulty 1/5 1-3 hours Newbie friendliness 69/100
-
ci-red code-regression gfx942 platform: Linux platform: Windows post-merge project: hipblaslt
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ROCm/rocm-libraries#16354 ·
Maintainers usually reply within 2 days
-
area:plugins kind:perf priority:p3 ready
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Auto-Format Suggestions job fails at setup: reviewdog/action-suggester v1.27.0 uses an action pinned by tagPossibly taken @fgogolli claimed this today. Openarea: ci priority: p2 size: S type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
finos/open-resource-broker#883 ·
Maintainers usually reply within 1 day
-
status/to triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day