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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM