"[Errno 13] Permission denied" using Pyinstaller in Virtual Environment #9044
Unanswered
enricodragoni
asked this question in
Help
Replies: 1 comment 4 replies
-
What happens if you manually remove |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I am having an issue with pyinstaller, which I think is likely due to permissions (I am on Windows 11).
In summary, when I run the pyinstaller.exe which is inside the "default" python installation (
C:\Program Files\Python3.12\Scripts\pyinstaller.exe
), the target EXE is built.When I am doing the same but from my Virtual Environment (
..env\Scripts\pyinstaller.exe
), the execution seems normal until I get the following error just before the EXE is built:WARNING: Execution of 'set_exe_build_timestamp' failed on attempt #1 / 20: Exception("Unable to access file 'D:\\MyProject\\dist\\myscript.exe': [Errno 13] Permission denied: 'D:\\MyProject\\dist\\myscript.exe'"). Retrying in 0.05 second(s)...
So it looks like there is a permission issue for the Virtual Environment when it comes to write the EXE.
How do I give permission to the Virtual Environment's pyinstaller.exe? I have tried to move the Virtual Environment to the same folder where the central Python installation is located, but it still didn't work.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions