I am new with working in odoo 11.0 and when i run my file hos.py this error will pop out (from odoo import models, fields, api, : ModuleNotFoundError: No module named 'odoo' ). enter image description here
For developing your own odoo modules/modules you need to start odoo-bin to test them: odoo-bin
You can find odoo-bin in the odoo project https://github.com/odoo/odoo/tree/11.0
Also if you are developing your own modules you need to add the modules/addons directory to the odoo.conf.
Odoo Modules are usually not executable outside of an odoo instance.
Have a look at the developer documentation for 11.0 here: https://www.odoo.com/documentation/11.0/howtos/backend.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.