Skip to content
Discussion options

You must be logged in to vote

No, that's a really misleading Windows error. You should never need admin for PyInstaller. PermissionError: [Errno 13] Permission denied: actually means any of:

  • You tried to read or write a file which already exists but is a folder (usually that just means delete the folder that's in the way).
  • You tried to move or replace a file which is open in another application. This is very common in PyInstaller if you open a command prompt or file explorer inside the dist folder, then try to rebuild your program. PyInstaller wants to replace the contents of dist but it's already open in your prompt/explorer. In which case, close the offending programs.

If you give us the full error traceback and t…

Replies: 8 comments 27 replies

Comment options

You must be logged in to vote
16 replies
@bwoodsend
Comment options

@malvinjohnny
Comment options

@bwoodsend
Comment options

@manjU-hash
Comment options

@bwoodsend
Comment options

Answer selected by andreyrisukhin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@bwoodsend
Comment options

@therealbdawg
Comment options

@bgmercury
Comment options

@therealbdawg
Comment options

Comment options

You must be logged in to vote
3 replies
@rokm
Comment options

rokm Jan 23, 2023
Maintainer

@msitez
Comment options

@bwoodsend
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@bwoodsend
Comment options

@bwoodsend
Comment options

@manikandanbalasubramani03
Comment options

Comment options

You must be logged in to vote
1 reply
@bwoodsend
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet