简体   繁体   English

pyinstaller失败,出现权限错误[Err-13]

[英]pyinstaller failing with permission error [Err-13]

I am trying to create exe for my python file (test1.py), I'm execute the command pyinstaller test1.py (and also tried with few other pyinstaller options). 我正在尝试为我的python文件(test1.py)创建exe,我正在执行pyinstaller test1.py命令(并且还尝试了其他一些pyinstaller选项)。 it is failing with below error 它失败并出现以下错误

PermissionError: [Errno 13] Permission denied: 'C:\\Users\\testuser\\AppData\\Roaming\\pyinstaller\\bincache00_py37_32bit\\vcruntime140.dll'

I am not sure from where is is taking double backslashes. 我不确定从哪里开始使用双反斜杠。 even if i copy this path and try to open in windows explorer, it is not opening. 即使我复制此路径并尝试在Windows资源管理器中打开,也无法打开。 If I change double backslash with single backslashes - then i am able to open the path in windows explorer. 如果我将单斜杠改为双反斜杠,那么我就可以在Windows资源管理器中打开路径。

When try to access path with windows explorer (with double backslashes) enter image description here 当尝试使用Windows资源管理器(带有两个反斜杠)访问路径时,请在此处输入图片描述

below with just changing double slash to single backslash enter image description here 下面,只需将双斜杠更改为单反斜杠,即可在此处输入图片说明

any pointers ? 有指针吗?

您试图在其中创建.exe文件的文件夹中可能没有写权限。在您想要创建.exe的文件夹中:右键单击,单击属性,单击安全性,然后使您的用户具有权限写作权。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM