PermissionError: [Errno 13] Permission denied: 'C:\\my\\path\\here' #5468
-
|
Hello! I'd like some help resolving an error I get when running pyinstaller to package my project. I'm running pyinstaller in a miniconda3 prompt, and get quite a bit of output (up to 5359 INFO), after which there is a traceback and the error message Looking online, I need to run the prompt as an admin, but I am not sure how to do this with miniconda3. Is there a solution you can recommend? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 27 replies
-
|
No, that's a really misleading Windows error. You should never need admin for PyInstaller.
If you give us the full error traceback and the command you ran to get it then I can tell you which case it is and how to solve. |
Beta Was this translation helpful? Give feedback.
-
|
I look into that thank you
…Sent from my iPhone
On 3 Oct 2022, at 7:49 PM, Brénainn Woodsend ***@***.***> wrote:
Presumably E:/azure is a directory - not a file.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
|
hey guys... having an issue here... wondering if anyone has any ideas |
Beta Was this translation helpful? Give feedback.
-
|
hello guys... I am also having an same issue here... wondering if anyone has any ideas: C:\windows\system32>pyinstaller -F [C:\Users\uif05360\PycharmProjects\pythonProject\appl curve.py] |
Beta Was this translation helpful? Give feedback.
-
|
I faced the permission denied error and spent hours attempting various solutions. The issue wasn't related to folder permissions, root/admin access, or corrupted Python versions. Instead, the problem stemmed from the script's location (like some of the replies here suggested). When using the "edit configuration" option (located at the top right of the main window), the interface prompts you for the script path in the first line. It's crucial NOT TO choose the folder itself but rather the FILE ITSELF in the tree view that appears. Otherwise, the system will attempt to access the entire folder instead of just the file. I hope this clarification helped. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @bwoodsend PS C:\Users\manikandan\Desktop\mast-duplicate> python setup.py install The following error occurred while trying to add or remove files in the The installation directory you specified (via --install-dir, --prefix, or Perhaps your account does not have write access to this directory? If the For information on other options, you may wish to consult the https://setuptools.readthedocs.io/en/latest/deprecated/easy_install.html Please make the appropriate changes for your system and try again. |
Beta Was this translation helpful? Give feedback.
-
|
Run python as admin in your environment. |
Beta Was this translation helpful? Give feedback.
-
|
" don't do that" but I did it and it worked.
…On Sun, 25 Jan 2026 at 19:55, Brénainn Woodsend ***@***.***> wrote:
No, please don't do that. Unless your Python code has a legitimate reason
to be manipulating admin config or admin owned files, that's precisely what
you avoid doing.
—
Reply to this email directly, view it on GitHub
<#5468 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMSYETJCKMEMGEYZPQO7HB34IUGSFAVCNFSM6AAAAACS2QYHDOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKNJZHE3DGNY>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
No, that's a really misleading Windows error. You should never need admin for PyInstaller.
PermissionError: [Errno 13] Permission denied:actually means any of:distfolder, then try to rebuild your program. PyInstaller wants to replace the contents ofdistbut 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…