unresolved refrence 'execfile'……

unresolved refrence 'execfile'……

字面意思是execfile这个东东没有被解析

难道是没有import相应的lib?

python docs

3.x:

Removes usage of execfile(). The argument to execfile() is wrapped in calls to open(), compile(), and exec().

针对execfile的使用在3.x中被替换成 open,compile和exec

PS:python不能向下兼容,据说2.7版本支持的第三方比较好

python是拍脑袋拍出来的吗?

那么odoo10.0建议用什么版本的python呢?

see:http://www.cnblogs.com/qianheng/articles/6236963.html

原文地址:https://www.cnblogs.com/qianheng/p/6240735.html