首页 > 解决方案 > Pyinstaller PermissionError: [Errno 13] Permission denied: run.exe

问题描述

我有一个烧瓶应用程序,我用 flaskwebgui 制作了一个 gui 桌面应用程序。我正在尝试使用 pyinstaller 使其成为分发给同事的可执行文件。我在运行 pyinstaller 时不断收到此错误:

PermissionError: [Errno 13] Permission denied: 'c:\users\myname\pycharmprojects\myprojectname\venv\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe'

我在运行什么:pyinstaller app.py -F --add-data "templates;templates" --add-data "static;static"

该应用程序在我的电脑上运行良好。当我使用 -w 时,我能够让 pyinstaller 工作,但我认为我不想使用它。

使用 -w 时,我能够在我的计算机上正常运行它,但是当我将它交给同事时,当应用程序发出 api 请求时,它给出了 500 错误。

标签: pythonflaskpyinstaller

解决方案


推荐阅读