错误速查
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(__

3万+

被折叠的 条评论
为什么被折叠?



