How to install Python dependencies for Odoo
Install the Python packages that Odoo and your custom modules need on TurboStack, using the platform-managed pip.
Install dependencies required by Odoo and your custom modules using pip. On TurboStack, Python is platform-managed through pyenv, and the pip on your PATH installs into the environment that runs Odoo. There is no virtual environment to create or activate by hand. For the file layout and service details, see Odoo reference.
Odoo core requirements
cd ~/application
pip install -r odoo/requirements.txt
Custom modules
If your custom modules include their own requirements.txt, install it:
pip install -r ~/application/custom/<module_name>/requirements.txt
Replace <module_name> with the module's directory name. Repeat for each module that has its own requirements.txt.
Apply the changes
Restart Odoo so it loads the newly installed packages:
systemctl --user restart application.service
Best practices
- Use the
pipthat is already on yourPATH(the pyenv-managed pip). - Avoid installing system-wide.
Related
- How to install and upgrade Odoo add-ons
- Odoo reference
- Deploy Odoo on TurboStack
- Odoo best practices
- Troubleshooting Odoo
- How to manage user system services
- Connect over SSH