最重要的參考是odoo的官網中相應版本的安裝文檔,https://www.odoo.com/documentation/10.0/setup/install.html#,不管安裝哪種操作系統下的哪一個發行版,重要事情說三遍,( . . . )
windows10下安裝11社區發行版
1.安裝virtualenv,創建安裝odoo的virtualenv 目錄
2.下載odoo源碼,解壓
3.安裝 error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
需要先安裝這個軟件
4.激活virutalenv環境,進入odoo源碼目錄,pip install -r require.txt
5.Install psycopg
using the installer herehttp://www.stickpeople.com/projects/python/win-psycopg/
python 3.6 需要到 (虛擬環境目錄)\lib\site-packages下的psycopg包中的_psycopg.py,有一個擴展名,python2.7 下沒有這個問題。
6. npm install -g less
npm install -g less-plugin-clean-css
Node.js是一個基於Chrome V8 JavaScript引擎構建的平臺.Nodejs可用於輕鬆構建快速,可擴展的網絡應用程序。最新版本node.js ppa由其官方網站維護。我們可以將這個PPA添加到Debian 9(Stretch) Debian 8(Jessie)和Debian 7(Wheezy)系統中。這篇我抄來的文章可以幫助你在Debian 9/8/7系統上安裝最新的Nodejs和NPM。
一、添加Node.js PPA
首先,您需要在我們的系統中由Nodejs官方網站提供node.js PPA。如果尚未安裝,我們還需要安裝python-software-properties軟件包。您可以選擇安裝最新的Node.js版本或LTS版本。
最新版安裝命令:
curl -sL https://deb.nodesource.com/setup_9.x | sudo bash -
安裝LTS長期維護版:
apt-get install curl python-software-properties
curl -sL https://deb.nodesource.com/setup_8.x | bash -
二、安裝Node.js和NPM
添加所需的PPA文件後,可以安裝Nodejs包。NPM也將與node.js一起安裝。該命令還會在您的系統上安裝許多其他相關軟件包。
apt-get install nodejs
三、檢查Node.js和NPM版本
安裝node.js後,驗證並檢查安裝的版本。你可以在node.js 官方網站上找到關於當前版本的更多細節。
檢查Node.js版本
node -v
檢查npm版本
npm -v