完整错误代码如下:
Connected to pydev debugger (build 182.4505.26)
Traceback (most recent call last):
File "D:\Program Files\JetBrains\PyCharm 2018.2.4\helpers\pydev\pydevd.py", line 1664, in <module>
main()
File "D:\Program Files\JetBrains\PyCharm 2018.2.4\helpers\pydev\pydevd.py", line 1658, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "D:\Program Files\JetBrains\PyCharm 2018.2.4\helpers\pydev\pydevd.py", line 1068, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "D:/UpupooResource/publish/odoo-10.0/setup/odoo", line 5, in <module>
__import__('pkg_resources').declare_namespace('odoo.addons')
File "D:\Python27\lib\site-packages\pkg_resources\__init__.py", line 2172, in declare_namespace
path = sys.modules[parent].__path__
KeyError: 'odoo'