PyInstaller ERROR: base_library.zip could not be created

embeddable python相当于python的便携版,可以不用安装,解压即可使用。这种版本的python安装pyinstaller将代码生成exe文件时,常常有一些奇怪的问题发生。比如下面的这种:
在这里插入图片描述
试过网上很多种方法都没用,最终自己研究了下这样可以解决。
相关问题解决方案可以看我在Unable to build executable using embedded zip Python #4989下的评论
在这里插入图片描述
大致意思就是:pyinstaller出错报的是找不到python37,zip文件夹下的文件,但看embedded
python里的有这个python37.zip的压缩包,压缩包里的确存在这个文件,于是乎就将该压缩包解压成python37.zip的文件夹,再执行pyinstaller就可以了

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
解析这个报错INTEL MKL ERROR: dlopen(/Users/baiminchen/opt/anaconda3/lib/libmkl_core.1.dylib, 0x0009): tried: '/Users/baiminchen/opt/anaconda3/lib/libmkl_core.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/baiminchen/opt/anaconda3/lib/libmkl_core.1.dylib' (no such file), '/Users/baiminchen/opt/anaconda3/lib/libmkl_core.1.dylib' (no such file). Intel MKL FATAL ERROR: Cannot load libmkl_core.1.dylib. Traceback (most recent call last): File "/Users/baiminchen/opt/anaconda3/lib/python3.9/site-packages/PyInstaller/isolated/_parent.py", line 373, in call return isolated.call(function, *args, **kwargs) File "/Users/baiminchen/opt/anaconda3/lib/python3.9/site-packages/PyInstaller/isolated/_parent.py", line 302, in call ok, output = loads(b64decode(self._read_handle.readline())) EOFError: EOF read where object expected During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/baiminchen/opt/anaconda3/bin/pyinstaller", line 8, in <module> sys.exit(_console_script_run()) File "/Users/baiminchen/opt/anaconda3/lib/python3.9/site-packages/PyInstaller/__main__.py", line 194, in _console_script_run run() File "/Users/baiminchen/opt/anaconda3/lib/python3.9/site-packages/PyInstaller/__main__.py", line 180, in run run_build(pyi_config, spec_file, **vars(args)) File "/Users/baiminchen/opt/anaconda3/lib/python3.9/site-packages/PyInstaller/__main__.py", line 61, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "/Users/baiminchen/opt/anaconda3/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 971, in main build(specfile, distpath, workpath, clean_build) File "/Users/baiminchen/opt/anaconda3/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 893, in build exec(code, spec_namespace) File "/Users/baiminchen/Desktop/database of xinstitute/main.spec", line 7, in <module> a = Analysis( File "/Users/baiminchen/opt/anaconda3/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 378, in __init__ self.hookspath += discover_hook_directories() File "/Users/baiminchen/opt/anaconda3/lib/python3.9/site-packages/PyInstaller/isolated/_parent.py", line 404, in wrapped return call(function, *args, **kwargs) File "/Users/baiminchen/opt/anaconda3/lib/python3.9/site-packages/PyInstaller/isolated/_parent.py", line 373, in call return isolated.call(function, *args, **kwargs) File "/Users/baiminchen/opt/anaconda3/lib/python3.9/site-packages/PyInstaller/isolated/_parent.py", line 244, in __exit__ self._write_handle.flush() BrokenPipeError: [Errno 32] Broken pipe
02-06

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值