Gaz Zhao
Gaz Zhao

Reputation: 214

Windows cannot access the exe file generated by Pyinstaller

I just packaged an app using PyInstaller, onedir mode. Then I encounter a weird problem. When I did it the first time, the exe file has no problem to open. Then I packaged a new version, I was never able to open the exe file again. The error is shown below. I searched quite a while online, but no solution found yet.

I'm using -

Windows 10

Python 3.8.2

Pyinstaller 3.6

error pic

Upvotes: 0

Views: 998

Answers (1)

Aleksander Ikleiw
Aleksander Ikleiw

Reputation: 2675

Try to use the autopytoexe. And within it select to export to one file. It solved that issue for me.

Upvotes: 1

Related Questions