# How to Install Odoo with source code (DEV edition)

## **i. Download Odoo Source Code**

1. Open the command prompt.
    
2. Go to the directory where you want to take a clone of Odoo’s source code.
    
3. Take a clone using the command (HTTPS).
    
    git clone [https://github.com/odoo/odoo.git](https://github.com/odoo/odoo.git)
    

## ii. **Install Python**

Download the Python installer [www.python.org/downloads/](http://www.python.org/downloads/) and install it. (in 2024 for Odoo 17, I recommend Python 3.10.5 version)

## iii. **Install PostgreSQL (12 or newer version)**

Download Postgresql from [https://www.postgresql.org/download/](https://www.postgresql.org/download/) and install it.

![Install Postgresql](https://cdn.hashnode.com/res/hashnode/image/upload/v1709096271861/c557f33f-e309-4bf0-a8a2-c2b3d2c88c62.png align="center")

Please select all the fields where we need pgAdmin4 later to access the database.

## **iv. Create a new PostgreSQL user**

1. Go to pgAdmin and follow the given steps.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1709096562566/14393f83-7dc2-41f4-8bc2-c74295b2b5c0.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1709096597846/82f29990-3868-4617-b0b9-9b5fabe716f7.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1709096612919/037b4d87-e666-4d80-8b93-d15ae374c9f6.png align="center")

For easiness username and password I set "odoo".

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1709096622320/ec1c8ccf-9c15-47c9-abbc-6b0a17896fe2.png align="center")

And set the privileges of the user.

## **V. Install Dependent Libraries**

In the command prompt, go to the recently cloned Odoo repo where the requirements.txt file is located and run the commands:

<mark>note: I would like to recommend making a virtual environment.</mark>

```bash
#creating virtual env
python -m venv .venv
#activating virtual env
.\.venv\Scripts\activate
```

Your virtual environment is active. Now, open your terminal and copy and paste the below commands.

```bash
pip install setuptools wheel

pip install -r requirements.txt
```

## VI. **Configure Odoo & Start the Server**

1. Open the command prompt, visit the Odoo directory, and locate the Odoo-bin file.
    
2. Run the command:
    

```bash
python odoo-bin -r db_user -w db_password --addons-path=addons -d demo_db
```

![How to run odoo with postgresql](https://cdn.hashnode.com/res/hashnode/image/upload/v1709097092897/1ef9f384-5696-4f5e-bcc4-ff7ec11b5139.png align="center")

Now go to the browser and type [<mark>localhost:8069</mark>](http://localhost:8069)

In the login screen, enter your email (**<mark>admin</mark>**) and password (**<mark>admin</mark>**) and Hit “Login”.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1709097318271/3e54b5db-0651-446a-bf19-eaff2da7744a.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1709097344464/6fc23cb0-cf05-4788-89c7-ace0b15979ed.png align="center")

Now, You're Good to Go------&gt;
