Các bước cài đặt cũng như bản thông thường nhưng có phần thư viện phải nạp bổ sung khác 1 chút.
tham khảo: https://github.com/guohuadeng/odoo12-x64
Download and install Node.js LTS.
LaunchCommand Prompt
as Administrator.
- Install
Less.js
by> npm install -g less less-plugin-clean-css
Download and installPostgreSQL, có thể dùng bản 64bit ver dưới 10 thôi.
add PostgreSQL’sbin
directory (default:C:\Program Files\PostgreSQL\x.x\bin
) to yourPATH
.
create apostgres
user with a password using thePgAdmin
GUI:
- open
PgAdmin4
, - expand
server
node to create a connection, - expand
PostgreSQL
node, - selectObject-> Create -> Login/Group Role,
- enter the username in the
Role Name
field (e.g. odoo), - open the
Definition
tab and enter the password (e.g. odoo), - open the
Privileges
tab and givelogin
andcreate database
rights,
- enter the username in the
- click
save
.
Download and installMicrosoft Visual C++ 2015 Redistributable
.
Download and installPython3version 3.6
.
- goto
Python3
installation directory (default:C:\Users\{UserName}\AppData\Local\Programs\Python\PythonXX
. - rename
python.exe
topython3.exe
andpythonw.exe
topythonw3.exe
. - add
Python3
installation directory (default:C:\Users\{UserName}\AppData\Local\Programs\Python\PythonXX
) to yourPATH
.
AfterVisual C++ 2015 Build Tools
installation process completes, launchCommand Prompt
as Administrator
- Install
pypiwin32
by> python3 -m pip install pypiwin32
- Install
Pillow
by> python3 -m pip install pillow
- Install
gevent
by> python3 -m pip install gevent
- Install
lxml
by> python3 -m pip install lxml
- Install
psutil
by> python3 -m pip install psutil
- Install
psycopg2
by> python3 -m pip install psycopg2
- Install
pyldap
by> python3 -m pip install pyldap (nếu bị lỗi hay chạy bằng whl)
- Install
reportlab
by> python3 -m pip install reportlab
Cài pyldap bị lỗi thì chạy bằng lệnhpip3 install pyldap-2.4.45-cp36-cp36m-win_amd64.whl
Download file pyldap-2.4.45-cp36-cp36m-win_amd64.whl
Download and install wkhtmltopdf.
Add wkhtmltopdf’sbin
directory (default:C:\Program Files\wkhtmltopdf\bin
) to yourPATH
.
LaunchCommand Prompt
.
Switch to (cd
) your desiredodoo
installation directory
cloneodoo
https://github.com/odoo/odoo/archive/12.0.zip
Switch toodoo
installation directory and runodoo
using$ python3 odoo-bin -w odoo -r odoo --addons-path=addons --log-level=debug_rpc
Một vài lỗi có thể cài về version cũ trong file extra
pip3 install -r .\requirements.txt -i https://mirrors.aliyun.com/pypi/simple
pip3 install .\extra\Pillow-5.4.1-cp36-cp36m-win_amd64.whl
pip3 install .\extra\psycopg2-2.7.7-cp36-cp36m-win_amd64.whl
pip3 install .\extra\pyldap-2.4.45-cp36-cp36m-win_amd64.whl
pip3 install .\extra\reportlab-3.5.13-cp36-cp36m-win_amd64.whl
pip3 install .\extra\Werkzeug-0.14.1-py2.py3-none-any.whl
pip3 install .\extra\pywin32-224-cp36-cp36m-win_amd64.whl
pip3 install .\extra\wandex-0.4.5-py3-none-any.whl
pip3 install .\extra\imageio-2.5.0-py3-none-any.whl
pip3 install .\extra\moviepy-1.0.0-py2.py3-none-any.whl
pip3 install .\extra\psutil-5.6.1-cp36-cp36m-win_amd64.whl
pip3 install .\extra\lxml-4.2.3-cp36-cp36m-win_amd64.whl
pip3 install .\extra\psutil-5.6.1-cp36-cp36m-win_amd64.whl
Nếu lỗi không đọc được module web thì
pip3 uninstall jinja2
pip3 install Jinja2==2.10.1
pip3 install libsass==0.12.3
Bài viết liên quan: