Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ウェブカメラで写真を撮るプログラムを作成しました。
Pygame と VideoCapture を使用しました。ファイルとしてはすべて正常に動作し.pywますが、py2exe でコンパイルした後は動作しません。
.pyw
私の調査によると、VideoCapture モジュールをコンパイルしようとするとエラーが発生します。私を助けてください!!! (Pyinstallerでも同様のエラーが発生します)
cx_freeze でコンパイルしてみましたか?
やあみんな、ついにカメラで動作する cx_freeze で実行可能ファイルを作成できます。解決策は、vidcapture.pyd をプログラムのあるファイルにコピーすることです。
この画像はvidcapture.pydを持つ私のファイルです