1. Use Pycharm to build the development debugging environment "turn"

Source: Internet
Author: User

Thanks FEIGAMESNB

First step : Install the python2.7 environment

Go to https://www.python.org/downloads/Download the Windows version of Python, select version 2.7, install as prompted, and add the installation path to the system variables!

Step two : Install Pycharm

Go to the official http://www.jetbrains.com/pycharm/download/Download Pycharm Community Edition, follow the prompts to install!

Step three : Install PostgreSQL

Go to official http://www.postgresql.org/download/windows/and follow the official instructions to install pgadmin3 and install the database!

Fourth step : Download Odoo source code

Go to http://nightly.odoo.com download the corresponding version of the source and unzip it with Pycharm Open!

and create a new openerp-server.conf file with the following contents:

[options]db_host = 127.0.0.1db_port = 5432db_user = Odoodb_password = Odooaddons_path = xxxxxxxxx Fill in according to the actual address, do not have Chinese-modify Requir ements.txt:psycopg2==2.5.3 >> psycopg2==2.6.0 python-ldap==2.4.15 >> python-ldap==2.4.19 Delete gevent== 1.0.1 reportlab==3.1.8 >> reportlab==3.1.44

Fifth Step : Install the PIP tool to install some of the dependent libraries required by Odoo!

Pip installation method is many, here is no longer verbose, you can refer to: http://jingyan.baidu.com/article/e73e26c0d94e0524adb6a7ff.html

After the PIP is installed, use PIP to install the Odoo dependent library, with the specific content referenced in the Odoo installation of the dependent libraries required!

-Install the Python driver for PG, Psycopg2-2.6.0.win-amd64-py2.7-pg9.4.1-release (https://pypi.python.org/pypi/psycopg2/2.6)- Install Python's VC compiler, VCFORPYTHON27 (http://www.microsoft.com/en-us/download/details.aspx?id=44266)-Install Access library for Windows System API , pywin32-219.win-amd64-py2.7 (http://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/)-Download and install the Directory Access library, PYTHON_LDAP?2.4.19?CP27?NONE?WIN_AMD64.WHL (http://www.lfd.uci.edu/~gohlke/pythonlibs/)-Install wkhtmltopdf, and add the path system variable-download and install the PDF processing Library, REPORTLAB-3.1.44-CP27-NONE-AMD64.WHL (http://www.lfd.uci.edu/~gohlke/pythonlibs/)- Install node. js and less (required for version 9.0) 1, install node. js http://nodejs.org/download/
Run node-v directly on the command line, and the command lines will print out: v0.6.1, indicating that the installation was successful.
2. Install CNPM NPM install-g cnpm-registry=https://registry.npm.taobao.org
The command line runs CNPM install underscore and returns a similar [email protected]./node_modules/underscore, indicating successful installation
3, installation Less,git run CNPM install-g [email protected],
Run the less example:
LESSC--compress all.less > All.min.css lessc all.less > All.css
4. Install less plus clean-css cnpm install-g less-plugin-clean-css https://libraries.io/npm/less-plugin-clean-css


Sixth Step : Configure Pycharm as

Get!

1. Use Pycharm to build the development debugging environment "turn"

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.