Build the Odoo development environment under Windows

Source: Internet
Author: User

The Odoo operating environment must be required to be

    1. python Environment
    2. PostgreSQL Data

??

Databases can be installed on other machines, such as servers, and of course, for development environments, databases and code debugging are usually installed on the same machine.

??

First, the PostgreSQL database is installed, the installation of PostgreSQL generally does not appear abnormal, the installation process is omitted

??

The PostgreSQL 9.4 installation package can be downloaded from Http://pan.baidu.com/s/1gdHEFon

??

The difficulty of installing Odoo is the preparation of the python Environment, which focuses on

??

First download Odoo source code

??

You typically use git for code base maintenance, and as with git toolset, you can use GitHub for Windows or git for windows , the individual likes to use git for Cygwin, the following example is based on git for Cygwin .

??

Download odoo Source code

$ git clone https://github.com/odoo/odoo.git

??

Update Odoo source code

$ pwd

/cygdrive/d/odoo

??

[Email protected]/cygdrive/d/odoo

$ git pull

??

??

Installing the Python Environment

??

In order to facilitate the construction of the Python environment, I have the Odoo must be the Python library files to share in the Baidu cloud disk. The address is Http://pan.baidu.com/s/1eQ6RlVO .

??

??

Download these library files to your local hard disk

Library file contains 2 formats

    1. The whl-wheel format encapsulates the
    2. exe- a Python library compiled for the Windows Platform

??

Install Python 2.7.8

Note thatOdoo can only run in Python 2.7and does not support Python 3, so do not install Python 3

??

Installing Python-setuptools

Note that libraries in thewheel format need to be installed with Pip

??

Install the library that Odoo needs

Go to the download directory where the Python library is stored and execute the command

Pip Install--no-index--find-links=d:\downloads\python\-R D:\odoo\requirements.txt

??

Description

find-links directory indicates download and save directory for Python Library

- R indicates Odoo 's python requirements, i.e. the requirements.txt under the odoo source root directory

??

??

Note that some libraries need to be compiled. So there are usually some libraries that are not installed with pip , so you need to install them using the Windows installation package.

??

These need to be installed with the Windows Installer, which is already available in the file directory you just downloaded.

??

Run Odoo

??

Setting up the Odoo configuration file

Copy the source directory debian\openerp-server.conf to the source root directory and modify it to run your Odoo development instance

The main is to modify the database connection information and Addons_path

??

Use the following command to run Odoo

Python odoo.py-c openerp-server.conf

??

??

Under normal circumstances, the output should look like the above.

??

If a similar hint appears for importerror:no module named xxxx , then a library [xxxx library ] is not installed.

Build the Odoo development environment under Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.