How to Install Odoo 18 with Pycharm | Setup Odoo 18 Development Environment Using Pycharm in Ubuntu
How to Install Odoo 18 Development Environment Using Pycharm in Ubuntu 22.04
Step 1: Download and install the Pycharm IDE
PyCharm Community Edition Download
sudo apt-get update
sudo apt-get upgrade
sudo snap install pycharm-community --classic
Step 2: Installing Python 3.12
To add the deadsnakes repository, use the following commands:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
You can verify the updated list of Python packages using the following command.
apt list | grep python3.12
You can install Python 3.12 by running the following command:
sudo apt-get install python3.12
To install the necessary packages for Python 3, you can use the following code:
sudo apt-get install python3.12-dev build-essential libjpeg-dev libpq-dev libjpeg8-dev libxml2-dev libssl-dev libffi-dev libmysqlclient-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2-dev liblcms2-dev
Step 3: Install Web Dependencies
The next step involves installing the necessary web dependencies.
sudo apt-get install -y npm
sudo ln -s /usr/bin/nodejs/usr/bin/node
sudo npm install -g less less-plugin-clean-css
sudo apt-get install -y node-less
Step 4: Install Wkhtmltopdf
sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
Step 5: Install PostgreSQL
sudo apt install postgresql postgresql-client
Step 6: Configure a Database User Role for Odoo Databases
sudo su - postgres
createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo18
Next, grant superuser privileges to the specified user.
psql
ALTER USER odoo18 WITH SUPERUSER;
Finally, exit both psql and the Postgres user.
\q
exit
Step 7: Obtain Odoo 18 Source Code
sudo apt-get install git
git clone https://www.github.com/odoo/odoo --depth 1 --branch 18.0 --single-branch odoo18
Step 8: Open the Odoo Project in PyCharm
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12
sudo apt install python3.12-venv
python3.12 -m venv your_venv_name
🔗 Read Now about the blog - How to Setup Odoo 18 Development Environment Using Pycharm in Ubuntu 22.04: https://www.cybrosys.com/blog/how-to-setup-odoo-18-development-environment-using-pycharm-in-ubuntu-22-04
🔗 Download Odoo 18: https://github.com/odoo/odoo/tree/18.0
#Odoo18 #OdooDevelopment #PyCharmSetup #OdooInstallation #Ubuntu2204 #OdooERP #PythonDevelopment #OdooTips #TechTutorial #OdooBeginners #PyCharm #Ubuntu2204 #OdooDevelopment #WebDevelopment #Python #OpenSource #Programming #Tutorial #Guide
Connect With Us:
—————————————
➡ ️ Websitehttps://www.cybrosys.com/m/
➡ ️ Email: info@cybrosys.com
➡ ️ Twihttps://twitter.com/cybrosysosys
➡ ️ Lihttps://www.linkedin.com/company/cybrosys/brosys
➡ ️ https://www.facebook.com/cybrosystechnologiesnologies
➡ ️ https://www.instagram.com/cybrosystech/brosystech
➡ https://pinterest.com/cybrosys/ / cybrosys