Installing Python Packages for Odoo

Odoo depends on various Python packages. To install certain applications in Odoo, it requires to install specified Python packages. This article will show you how to install Python extensions via pip3.

1. Locate the target deployment

Log in to the Control Panel and locate your target deployment on the Home page or the My Applications page.

2. Navigate to the “Shell / SSH” page

Click the "Manage" button on the Home page or the My Applications page to go to the Shell / SSH page.

3. Activate a Python virtual environment

Click the "Connect" icon to launch a shell session.

In the home directory(/cloudclusters/), execute the command below to activate a python virtual environment:

source odoo/venv/bin/activate

4. Install python packages via pip3

In this example, we will install the python img2pdf package. The installed python packages will be stored in /cloudclusters/odoo/venv/lib/python3.7/site-packages/

Issue the command below to install the Python imga2pdg package

pip3 install img2pdf

or install a specified version of the python img2pdf package

pip3 install img2pdf==0.4.0

5. Check the installed Python packages

Execute the command below to check installed python packages

pip3 list

6. Exit the Python virtual environment

Execute the command below to exit the python virtual environment:

deactivate

Copyright © 2021 Cloud Clusters Inc. all right reserved,powered by GitbookRevised on 04/30/2021

results matching ""

    No results matching ""