ImportError: No module named openerp
import openerp won't work in Odoo 10 because openerp is replaced with odoo. Upto version 9 it was openerp but in 10 it changed.
So try:
import odoo instead of import openerp.
Odoo 10 source code does not contain an import openerp anywhere, maybe you have downloaded from the wrong source.
While running odoo at the first time it shows ImportError: No module named openerp

C:\Python27\python.exe E:/workspaces/odoo-10.0-20170812/odoo.py -c
E:\workspaces\odoo-10.0-20170812\odoo.conf Traceback (most recent call
  last):   
File "E:/workspaces/odoo-10.0-20170812/odoo.py", line 160, in
  
      main()
  File "E:/workspaces/odoo-10.0-20170812/odoo.py", line 156, in main
import openerp
ImportError: No module named openerp
Process finished with exit code 1