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

查看:58
本文介绍了PermissionError: [Errno 13] 权限被拒绝: pyinstaller.exe/TKinter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下命令将 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.com/a/52054580/10537606

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

希望对你有用

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆