首页 > 其他分享 >pyinstaller 打包报错Failed to determine matplotlib‘s data directory

pyinstaller 打包报错Failed to determine matplotlib‘s data directory

时间:2023-03-16 18:56:13浏览次数:35  
标签:pyinstaller mpl matplotlib Failed 报错 determine data dir


# from PyInstaller.utils.hooks import exec_statement # # mpl_data_dir = exec_statement( # "import matplotlib; print(matplotlib.get_data_path())") # assert mpl_data_dir, "Failed to determine matplotlib's data directory!" # # datas = [ # (mpl_data_dir, "matplotlib/mpl-data"), # ] 改成下面 import matplotlib mpl_data_dir = matplotlib.get_data_path() datas = [ (mpl_data_dir, "matplotlib/mpl-data"), ]

  

pyinstaller -F -w main.py

pyinstaller 打包报错Failed to determine matplotlib‘s data directory

标签:pyinstaller,mpl,matplotlib,Failed,报错,determine,data,dir
From: https://www.cnblogs.com/pythonClub/p/17223797.html

相关文章

  • docker-compose编排环境报错
    docker-composeup拉取环境出现如下报错,看到Timeout以为是网络不好,其实不然,用vim/etc/docker/daemon.json添加新的镜像地址,再次docker-compose的时候就顺利进行了。......
  • ruoyi-vue启动报错error:03000086:digital envelope routines::initialization error
    原因分析可能是因为node是最新版本导致ERR_OSSL_EVP_UNSUPPORTED错误SSL数字信封不支持解决措施(ps:网上找的)setNODE_OPTIONS=--openssl-legacy-provider亲测并......
  • Pycharm报错 : SyntaxError: Non-ASCII character ' but no encoding declared;
     File"D:/03��ѧ/2023�괺��Python/0310/����ѧ�ź������Ƚ�v3--��Ѷ���鿼��ר��--12��.py",line1SyntaxError:Non-ASCIIcharacter'\xe6'infileD:/03��ѧ/2023�괺��Python/0310/����ѧ�ź������Ƚ�v3--��Ѷ���鿼��ר......
  • Raize控件的RzBorder报错的问题
    分析结果:这里发现一个问题,就是elements(这个数字)和后面的那个数字必须对应,这个是以为编码问题,造成系统识别的长度不一样。因此解决最简单的办法:直接修改字符长度一样就可......
  • npm上传verdaccio报错:error: one of the uplinks is down, refuse to publish
    问题场景verdaccio搭建本地npm私库后,上传包到私库报错:http<--503,user:xx,req:‘PUT/helloworld’,error:oneoftheuplinksisdown,refusetopublish解决办......
  • 达梦数据库报错:数据类型不匹配
    最近在用达梦数据库,今天碰到一个问题,报错:数据类型不匹配。查询条件中有个字段是TEXT类型,jdbcType之前是VARCHAR,我把它改成了LONGVARCHAR,心想这下应该好了吧,结果还是报错,......
  • 安装好了calico,机器重启了,k8s异常nfs挂载报错
      节点没有装nfs-utils包吧,安装了依然报错。位于node02上的pod死活起不来,kubectldeletepod--all-nrbd-system把rainbond的pod都删了依然报错。node02上节点到......
  • k8s dashboard 访问报错
      1、浏览器访问:若页面报错提示:“ClientsentanHTTPrequesttoanHTTPSserver.”,需要加https去访问。2、之后浏览器会告诉你“攻击者可能会试图从127.0.0.1窃......
  • MongDb 报错 Finding the split vector for
    "Findingthesplitvectorfor"是MongoDB中分片操作时出现的错误消息,提示系统正在尝试为特定集合查找分片的分割点(splitvector),但该操作过程中出现了异常。该错误可能......
  • 【快应用】Eval编译报错
    ​ 【关键字】快应用、编译报错 【问题背景】报错描述在编译快应用项目的时候报如下错误,主要是引用一些第三方的sdk中有涉及到eval的。​ 【问题分析】从IDE......