一、安装pyinstaller

pip install pyinstaller

二、编译:

pyinstaller facedetectandsaveimage.py

结果:

自动生成"C:\Users\username\dist\FaceDetectAndSaveImage"文件夹和相关文件(包括exe文件)

注意:

  python源码中尽量不要包含中文,否则需要附加另外的文件。

 

相关文章:

  • 2021-08-25
  • 2021-09-17
  • 2021-12-29
  • 2022-01-04
  • 2021-12-19
  • 2021-11-20
  • 2022-02-13
猜你喜欢
  • 2021-12-22
  • 2021-05-28
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2021-05-25
相关资源
相似解决方案