odoo-development-environment-tutorial icon indicating copy to clipboard operation
odoo-development-environment-tutorial copied to clipboard

pip install 安裝依賴的時候有報錯pg_config executable not found

Open ft-ttbl opened this issue 3 years ago • 2 comments

我的device是Mac mini i5 源碼安裝odoo 15.0 在虛擬環境下安裝依賴的時候報了這個錯: Screen Shot 2023-01-06 at 11 51 17 AM 這個是說要把pg_config的文件路徑加到$path裡面嗎?但是package都還沒安裝好哪來的路徑呢?

ft-ttbl avatar Jan 06 '23 19:01 ft-ttbl

參考一下文章的 可能出現的錯誤三, 有時候 psycopg2 會安裝失敗(odoo15), 建議可以改安裝 psycopg2-binary.

pip3 install psycopg2-binary

twtrubiks avatar Jan 08 '23 04:01 twtrubiks

对,我也是这个问题,改用psycopg2-binary就可以。

gongmin00 avatar Jan 11 '23 00:01 gongmin00