How to setup Odoo on Macbook Pro

 

How to setup Odoo in Macbook Pro ?

Hi there, welcome to this blog, Here you can see how to setup Odoo in your local system for development purpose.

While you setup Odoo in any of this operating system such as MacOS and Linux having common commands to setup locally only difference is the application extension.

Below is the main .pkj applications you need to install from official website in case command line libs not working.

Python3.8 or higher version for Odoo V14 or higher version once home brew installed:- 
  • https://www.python.org/downloads/macos/

PostgreSQL with 12.4 version once home brew installed:- 
  • https://www.postgresql.org/download/macosx/

Let's start to setup setup from terminal.

Step 1 is Open terminal

Step 2 is check Xcode is installed or not

> xcode-select -p

If you found following output then you don't need to install Xcode

/Library/Developer/CommandLineTools

Step 2.1 Installing Xcode if its not installed.

> xcode-select --install

Step 3 is install Home Brew

> /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Step 4 Now time to add path in .bash_profile file in root directory

> nano ~/.bash_profile

Step 5 Add below line in .bash_profile

> export PATH=/usr/local/bin:$PATH

Step 6 Save and exit from the above file and use below command to active those changes you have just c

> source ~/.bash_profile

Step 7 Install Git package using below command

> brew install git

Step 8 Try to install PostgreSQL using above url. 

 

Step 8.1 Create PostgreSQL user.

        > create user odoo with superuser;

        > alter user odoo with password 'odoo';


Step 9 Now time to install Python.

> brew search python

You can see list of python versions and here you need to install specific version.
 






Or in case you didn't find 3.8 or higher version just install through official website please check link is given beginning of this post.

And while you installed from brew, It will auto install pip, setuptools and wheel libs too. so you don't need to install separately.

Step 10 Now time to create virtual environment using Python3.8 (Here I am assuming you installed same version if not please your python version only)

> python3.8 -m venv ~/odoo14env 
(This env installed in your root directory if you want to change the location you are free to change ;) )

Step 11 Active virtual environment use below command 

> source ~/odoo14env/bin/activate

Now you can see in terminal you successfully activate that venv.

(odoo14env) harshdhaduk@Harshs-MacBook-Pro ~ %

Step 12 Now time to clone latest branch pull (Latest branch is right now 14.0) You can use any branch name.

> git clone https://github.com/odoo/odoo.git -b 14.0 --single-branch --depth 1

Step 13 Go to odoo directory

> cd odoo

Step 14 Now try to install requirements.txt file

> python3.8 -m pip install -r requirement.txt

Step 14.1 In case you encounter any error for specific libs just try to install all given in this text file and than start odoo service in your local system.

Step 15 Run odoo service.

> python odoo-bin

Step 16 Open browser and type "localhost:8069"

You will redirect to database creation page. Enjoy.
 
 
Please refer the same steps in below video.
 

 

Comments

  1. Book a techie for your business and get started with us. Inwizards Odoo Development Company is your go to place for all software solutions. Lead our company towards success with Inwizards LLC.

    Why Inwizards?


    Experienced Odoo Developers
    500+ successful projects delivered
    Mastery in latest technologies
    Transparent workflow
    Affordable
    Support and maintenance
    Diverse medium to interact with developers


    If you want to achieve success for your business, Inwizards LLC provides the best odoo development services.

    Feel free to get in touch with us for further discussions and pricing details. Here are our contact details:

    Website Address: https://inwizards.com/hire-odoo-developers-India.php

    Email: info@inwizards.com

    Call: USA- +1-(979)-599-0896 | IN- +91-9667584436

    ReplyDelete
  2. Your blog contains lots of valuable data. It is a factual and beneficial article for us. Thankful to you for sharing an article like this.Macbook Pro Unibody A1286 Parts

    ReplyDelete
  3. Really good work there. Informative and helpful. Appreciate it. But might be looking for Odoo ERP Development Services in Virginia

    ReplyDelete
  4. STEP 14 > python3.8 -m pin install -r requirement.txt

    ReplyDelete

Post a Comment

Contact Me

Name

Email *

Message *

Popular posts from this blog

What is context and life cycle of context in Odoo!

How to become Odoo developer? | Start your carrier with Odoo? | What skill require to become Odoo developer?