Python Dependencies #576
Replies: 4 comments
-
That's the way to do it. Check if you have rebuilt the image after adding the dependency. |
Beta Was this translation helpful? Give feedback.
-
do you have the output of the build? (when changing dependencies you need to rebuild the image) edit: also if you can share the contents of your pip.txt it would help. (some options used in pip.txt can break the edit2: what you are looking for is a line like:
and possible following errors |
Beta Was this translation helpful? Give feedback.
-
you may just navigate to that folder and use cmd or terminal to use this command:
If you want to add a new dependency to the pip.txt or requirements.txt file, you can do so by opening the file in a text editor, adding the new dependency (and optionally the version number) on a new line, and saving the file. For example, to add the requests library version 2.25.1, you would add a line that says requests==2.25.1. |
Beta Was this translation helpful? Give feedback.
-
do you have the output of the build? (when changing dependencies you need to rebuild the image) edit: also if you can share the contents of your pip.txt it would help. (some options used in pip.txt can break the pip install command (e.g. using override args (like --no-deps) on one line propagates to the next lines)) edit2: what you are looking for is a line like: #11 5.601 doodba INFO: Executing: ['pip', 'install', '--no-cache-dir', '-r', '/opt/odoo/custom/dependencies/pip.txt'] |
Beta Was this translation helpful? Give feedback.
-
How do I add python dependencies? Adding them to xxxxxx/odoo/custom/dependencies/pip.txt didn't work.
Beta Was this translation helpful? Give feedback.
All reactions