pyinstaller × pyecharts 错误及解决汇总

错误速查

js: Uncaught ReferenceError: echarts is not defined【错误3】
\AppData\Local\Temp\_MEI4802\pyecharts\datasets\map_filename.json【错误1】
jinja2.exceptions.TemplateNotFound: simple_chart.html【错误2】

错误1

File “site-packages\pyecharts\datasets_init_.py”, line 93, in
FileNotFoundError: [Errno 2] No such file or directory:
‘C:\Users\???\AppData\Local\Temp\_MEI4802\pyecharts\datasets\map_filename.json’

解决方式

直接把python安装的pyecharts(Lib\site-packages\pyecharts)贴到此exe所在的路径下
/

pyrcharts

XXX.exe

打开文件 pyecharts\datasets_init_.py
找到 __HERE = os.path.abspath(os.path.dirname(file))
重新定义 __HERE 为你的项目路径

来龙去脉

看到报错是在pyecharts\datasets_init_.py文件93行,下面是代码

__HERE = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(__
评论 22
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值