Python中文
首页
教程
问答
标签
搜索
登录
注册
在Windows上复制文件时“IOError[Errno 13]Permisson denied”
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我编写了一个程序,将一个名为a.exe的文件复制到<code>C:/Windows/</code>,然后用PyInstaller将其打包为exe,并将该exe文件重命名为a.exe。当我运行exe文件时,它输出<code>IOError [Errno 13] Permisson denied: 'C:/Windows/a.exe'</code>,但是文件<code>a.exe</code><strong>被复制到目录</strong><code>C:/Windows</code>。然后我以管理员的身份运行,又发生了。。。 首先,我用<code>shututil.copy</code>复制文件,然后我自己编写了一个函数(打开a.exe,在C:/Windows下创建a.exe,读取a.exe的内容并写入C:/Windows/a.exe,全部关闭),但它没有帮助……有什么想法吗?在</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>检查a.exe是否具有只读属性。shutil.复制调用它以覆盖具有只读属性集的现有文件时引发“权限被拒绝”错误</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何在乒乓球比赛中预测球的轨迹,对于AI球拍预测?
10 回答
如何在乒乓球游戏中阻止球
2 回答
如何在乘法和模中不乘空间?
7 回答
如何在乘法和除以2个不同的数字之间进行交换?
7 回答
如何在也是数据一部分的单个字符上拆分大字符串
5 回答
如何在乾草堆中找到針,有更好的解決方案嗎?
3 回答
如何在事件wxWidgets中传递自定义数据
6 回答
如何在事件中使用lambda i=i?
9 回答
如何在事件中心只接收最近的数据
10 回答
如何在事件发生之前保持云函数运行?
2 回答
如何在事件发生后使页面重定向到同一页面
9 回答
如何在事件回调之间保持python生成器的状态
5 回答
如何在事件处理程序(pythonsocket、sphinx)中保留docstring
9 回答
如何在事件处理程序中更改wxRichTextCtrl的光标位置?
3 回答
如何在事件处理程序中访问外部对象?
1 回答
如何在事件循环中将协程打包为正常函数?
7 回答
如何在事件循环之外运行协同程序?
1 回答
如何在事件循环结束时为并发未来的所有线程调用类方法?
3 回答
如何在事件文件中只保留一份摘要?
7 回答
如何在事件模板中添加事件
10 回答