【nuitka】 Fatal Python error: Py_Initialize: unable to load the file system codec

【nuitka】 Fatal Python error: Py_Initialize: unable to load the file system codec

  • 1.背景
  • 2.分析原因
  • 3.解决办法
  • 4.运行
  • 5.资源

1.背景

参考博客:
【nuitka】 打包cv.dnn.readNet(xml,bin)推理代码,及打包python应用程序(3)
https://blog.csdn.net/jn10010537/article/details/112656086

文章提到:nuitka打包后在别的计算机上运行可能会报错,即在台式机打包后,在笔记本上运行报错,如下图1,2:
运行nuitka-mingw64编译的face_detection.exe报错如下图1:
【nuitka】 Fatal Python error: Py_Initialize: unable to load the file system codec_第1张图片

运行nuitka-MSVC

你可能感兴趣的:(【nuitka】 Fatal Python error: Py_Initialize: unable to load the file system codec)