跳至內容
選單
此問題已被標幟
1 回覆
115 瀏覽次數

Hello,

I installed Odoo 18 on my laptop on Windows 10 (the python version is 3.12).

Odoo is working fine, inclusive with addons developed from scratch.

I would like to use the numpy python module on an Odoo addon.

I Installed numpy on the python (python.exe -m pip install numpy).

In python it's working correctly.

Howover if I have a module with "import numpy" inside, Odoo is not working. It seems that odoo does not find the python numpy module.

Could you help me ?

Thanks.

Boris

頭像
捨棄

Please add details about the VERSION of numpy that is installed and the ERROR you get.

最佳答案

The Odoo installer for Windows comes with its very own python setup. I'm quite sure, python.exe is not the path you need, unless you have set up your PATH environment variable accordingly.

Navigate to the directory in which you've installed Odoo, by default it should be something like C:\Program Files (x86)\Odoo 18.0...\.In there you should find a python directory and ultimately a python.exe and a pip.exe, hence your command would probably need to look something like this:

"C:\Program Files (x86)\Odoo 18.0...\python\pip.exe" install numpy

Note: It's a while since I've been running an Odoo setup on Windows, so the exact path will need to be found by yourself.

頭像
捨棄