-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Correct way to install python libraries using requirements file #529
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
Comments
It seems that Ubuntu adopted PEP 668 between Jammy and Noble. I think your |
This must be addressed. This feels like a hack to me. |
You should use system packages, and not mix with pip. --break-system-packages has a meaning, and it can mess up your system so that odoo won't find eg. installed system modules |
Do you think you could give me an example of how I could install a library that isn't in the docker Base, like Rich or Loguru? |
Modify your Dockerfile, and add
after python3-xlwt (line 39, https://github.com/odoo/docker/blob/master/18.0/Dockerfile#L39) |
Uh oh!
There was an error while loading. Please reload this page.
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
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
The text was updated successfully, but these errors were encountered: