Aller au contenu principal

Install Python Packages

If your custom Odoo modules depend on third-party Python libraries, you can declare them in a requirements.txt file. Skysize will automatically detect it and install the listed packages when your branch is deployed.


Add a requirements.txt file

At the root of your repository, create a file named requirements.txt and list the Python packages you need, one per line:

requests
pandas==2.2.0
numpy>=1.26

Commit and push the file:

git add requirements.txt
git commit -m "Add Python dependencies"
git push

Skysize will install these packages automatically on every deployment.


Notes

  • The file must be at the root of the repository, not inside a subdirectory.
  • Standard pip requirement specifiers are supported (==, >=, ~=, etc.).
  • Packages are installed into the Odoo container environment, making them available to all custom modules.
  • If you remove a package from requirements.txt, it will no longer be installed on future deployments, but it will not be uninstalled from existing running instances until they are redeployed.