Windows10 64位部署odoo12开发环境

预装Windows10 64位家庭版电脑一台 2019年7月

安装Python,这里的版本选择上有个坑,不要装最新的Python 3.7.x,原因是odoo12依赖pillow 4.0.0库,而这个4.0.0版本的pillow库在python 3.7.x下安装会报Zlib找不到的错。

 

移步https://www.python.org/downloads/windows/

下载 Python 3.6.8 Windows x86-64 executable installer 安装

安装Postgresql

https://www.enterprisedb.com/downloads/postgres-postgresql-downloads

下载Windows x86-64 10.10版本

 

安装git

https://gitforwindows.org/

安装pycharm社区版

www.jetbrains.com/pycharm/download/#section=windows

拉取odoo源码

https://github.com/odoo/odoo

 

生成python虚拟环境

 

可以在Pycharm中设置

安装visualcppbuildtools_full.exe

如果跳过此步骤,后面安装Python依赖库时会报错Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools"

下载地址:http://go.microsoft.com/fwlink/?LinkId=691126

安装odoo的python依赖库

pip install -r requirements.txt

pip安装上一步遗漏的

pip install psycopg2 psutil

编辑odoo的启动配置文件

 

启动odoo

 

参考文章

https://devblogs.microsoft.com/python/unable-to-find-vcvarsall-bat/

https://www.jianshu.com/p/a64d8c78390d?tdsourcetag=s_pctim_aiomsg

 

posted on 2019-08-26 15:40  jlzhou  阅读(1444)  评论(0编辑  收藏  举报

导航