pyinstaller不兼容pyecharts的问题

使用pyinstaller进行python程序打包的时候,在https://github.com/pyinstaller/pyinstaller/wiki/Supported-Packages上看到对于pyecharts的支持不好,因此不能将pyecharts打包到程序当中,会出现错误
pyinstaller对pyecharts的兼容性为erro
网上找的方法大都云里雾里的,大概意思就是pyecharts涉及到一些js,json文件没有打包,使得整个打包软件找不到相关文件,所以报错。
我的方法是pyinstaller -D 文件名 后,会有一系列的文件生成在dist文件夹中,我们另外从python的site_package中找到pyecharts文件夹,并把这整个文件夹都放到dist文件夹中,这样在运行打包的软件就不会报错了
我自己电脑的pyecharts文件夹地址如上
放在这里

发布了6 篇原创文章 · 获赞 8 · 访问量 989

猜你喜欢

转载自blog.csdn.net/weixin_43865152/article/details/93781051