我已将需要的文件添加到编译文件夹中,例如
def get_cefpython_path():
from cefpython3 import cefpython
path = os.path.dirname(cefpython.__file__)
return "%s%s" % (path, os.sep)
def get_data_file():
cefp = get_cefpython_path()
data_files = [('', ['%s/icudt.dll' % cefp,
'%s/d3dcompiler_43.dll' % cefp,
'%s/devtools_resources.pak' % cefp,
'%s/ffmpegsumo.dll' % cefp,
'%s/libEGL.dll' % cefp,
'%s/libGLESv2.dll' % cefp]),
#'%s/Microsoft.VC90.CRT.manifest' % cefp,
#'%s/msvcm90.dll' % cefp,
#'%s/msvcp90.dll' % cefp,
#'%s/msvcr90.dll' % cefp]),
('locales', ['%s/locales/en-US.pak' % cefp]),
]
return data_files
我将 Microsoft.VC90.CRT.manifest、msvcm90.dll、msvcp90.dll、msvdr90.dll 节点化为路径 cefp 中还有其他需要的文件,但没有这些文件。我什至尝试复制路径 C:\Python27\ 中的所有文件Lib\site-packages\cefpython3 到我的构建文件夹。最后我在win7上运行exe失败并显示msvcr90.dll错误但是当我用管理员运行它时没问题。请帮助我并告诉我原因