python - 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 错误。
解决方案
推荐阅读
- reactjs - 在前端开发中禁用或存根 keycloak 的理想方法?
- java - Galen 框架:主要 gspec 中的 EcmaError 异常错误
- c - 套接字失败,docker 环境中不支持系列
- angular - 在 file:/// 上本地运行 Angular 7 项目,无需服务器
- solr - 需要定期重启 Solr/Apache 是否正常?
- flutter - 如何在 Flutter 中使用 setState 而无需用户交互
- javascript - 为什么我的猫头鹰轮播自动播放不起作用?
- python-3.x - pandas.read_clipboard 只读取整行而不是列
- javascript - jquery在tr中追加动态数据
- python - 生成此类图像的库的名称是什么