【问题标题】:py2exe not compiling VideoCapture correctlypy2exe 未正确编译 VideoCapture
【发布时间】:2012-11-04 14:25:32
【问题描述】:

我创建了一个使用您的网络摄像头拍照的程序。

我使用了 Pygame 和 VideoCapture。这一切都可以作为.pyw 文件正常工作,但是在使用 py2exe 编译后它就不起作用了。

根据我的研究,错误来自尝试编译 VideoCapture 模块。 请帮帮我!!! (Pyinstaller 也会出现同样的错误)

【问题讨论】:

  • 这个运气好吗?我也有同样的问题...

标签: python pygame py2exe


【解决方案1】:

你试过用 cx_freeze 编译吗?

【讨论】:

    【解决方案2】:

    大家好,我终于可以使用 cx_freeze 制作一个可执行文件,该文件可以与相机一起使用,解决方案是您应该将 vidcapture.pyd 复制到包含您的程序的文件中

    this image is my file which have vidcapture.pyd

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-02-12
      • 2018-07-22
      • 2013-08-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多