2
私はちょうど私の問題をあなたの助けを求めていた。 私のコードは完全に動作していますが、PyInstaller
を使用して.exe
に変換した後、私はFileNotFoundError: [WinError 2]
に遭遇します。PyAutoGui [WinError 2] Pyinstallerを使用してexeするスクリプトをカバーした後
どうすれば修正できるかをお勧めします。
コード:
import pyautogui, time
try:
while True:
time.sleep(30)
pyautogui.dragRel(1,0)
pyautogui.dragRel(-1,0)
except KeyboardInterrupt:
print('Done')
exeファイルといくつかのファイルを含む単一ファイルexeまたはフォルダに変換しますか? – linusg
私は両方を試みましたが、それはうまく動作しません。 – user6819230
最初に実行可能なフォルダでテストを続行します。あなたはhttps://github.com/pyinstaller/pyinstaller/wiki/If-Things-Go-Wrongとhttps://github.com/pyinstaller/pyinstaller/wiki/How-to-Report-Bugs#make-sureを試しましたか? - すべてがパッケージ化されていますか? – linusg