PermissionError: [Errno 13] 权限被拒绝: pyinstaller.exe/TKinter

编程入门 行业动态 更新时间:2024-10-24 04:40:34
本文介绍了PermissionError: [Errno 13] 权限被拒绝: pyinstaller.exe/TKinter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在尝试使用以下命令将 TKinter .py 文件执行到 .exe 文件中:

I am trying to execute TKinter .py file into .exe file with the following command:

pyinstaller.exe --onefile Weather_App.py

在命令提示符中,我收到以下错误:

In the command prompt, I receive the following error:

权限错误:[Errno 13] 权限被拒绝:'C:\Users\Owner\Documents\Python Scripts\TKinter_Projects\Weather_App.spec'

这是截图的链接

请问有人可以帮忙吗?我尽我所能.(如果我需要上传更多信息,请告诉我,这是我的第一个问题).

Please could anyone help? I tried everything I could. (Please let me know if I need to upload more info, this is my first question).

谢谢大家.

推荐答案

当我使用 pyinstaller 创建一个 exe 文件时,杀毒软件会立即删除该 exe 文件.

When I create an exe file using pyinstaller then antivirus removing the exe file instantly.

但最终,pyinstaller 在遵循这些方法后为我工作.

but finally, pyinstaller worked for me after following these ways.

python -m PyInstaller file.spec

或者如果问题仍然存在,请点击此链接https://stackoverflow/a/52054580/10537606

or if the issue persists follow this link https://stackoverflow/a/52054580/10537606

希望对你有用

这篇关于PermissionError: [Errno 13] 权限被拒绝: pyinstaller.exe/TKinter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-30 06:00:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1390178.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:被拒   权限   PermissionError   Errno   exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!