pyinstaller打包pyecharts

使用pyinstaller进行python程序打包的时候,在https://github.com/pyinstaller/pyinstaller/wiki/Supported-Packages上看到对于pyecharts的支持不好,因此不能将pyecharts打包到程序当中,会出现如下的错误,参考https://www.yinyubo.cn/?p=177,在pyinstaller打包后的程序根目录建立文件夹pyecharts,将pyecharts在python环境中的template整个拷出来放到打包后的主程序的pyecharts目录下。

再运行还是会出现以下错误

此时在pyinstaller打包后的程序的根目录下建立文件夹jupyter_echarts_pypkg,将jupyter_echarts_pypkg这个模块的resources这个目录页复制到pyinstalller打包后的主程序的jupyter_echarts_pypkg目录中。

次吃

 

posted @ 2019-01-30 16:07  知识的小海绵  阅读(2044)  评论(0编辑  收藏  举报