py27使用pyinstaller打包pyecharts模块生成html无图案(pycharm运行正常)。

源码在pycharm运行成功,pyinstaller打包后,将C:\Python27\Lib\site-packages\pyecharts\templates的html文件拷贝到exe根目录,运行成功,打开html无内容

1、打包截图

图片说明

2、未拷贝html运行截图
图片说明

求大神帮忙看下。

使用cx_Freeze打包解决

https://github.com/pyinstaller/pyinstaller/wiki/Supported-Packages
pyinstaller和pyecharts不兼容

可以试下换成 cx_Freeze 或者py2exe来打包

可以试试这个文章里的方法
http://www.yinyubo.cn/?p=177