Flask WSGI处理程序FileNotFoundError:[Errno 2]没有这样的文件或目录

2024-04-25 21:13:02 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在部署一个python web应用程序(dash、flask)。我遵循了此链接中的教程: https://medium.com/@bilalbayasut/deploying-python-web-app-flask-in-windows-server-iis-using-fastcgi-6c1873ae0ad8

这很好,我运行了这个示例。现在我想运行我自己的应用程序(在调试模式下在本地PC上运行良好)。但是,当我像链接中的示例一样部署它时,它会给出一个错误,即找不到文件

我的应用程序的结构如下:

- main.py
- bim.py
- tools.py
   - Dictionaries
   - assets

运行应用程序时,我收到以下错误消息: enter image description here

我不知道为什么应用程序找不到该文件,因为它位于提供的绝对位置。希望任何人都能在这个问题上帮助我

其他信息、软件包(已安装的要求):

Brotli==1.0.9
click==7.1.2
dash==1.15.0
dash-core-components==1.11.0
dash-html-components==1.1.0
dash-renderer==1.7.0
dash-table==4.10.0
DateTime==4.3
Flask==1.1.2
Flask-Compress==1.5.0
future==0.18.2
gunicorn==20.0.4
itsdangerous==1.1.0
Jinja2==2.11.2
MarkupSafe==1.1.1
numpy==1.19.1
pandas==1.1.1
plotly==4.9.0
python-dateutil==2.8.1
pytz==2020.1
retrying==1.3.3
six==1.15.0
Werkzeug==1.0.1
xlrd==1.2.0
zope.interface==5.1.0

字典目录的权限:enter image description here


Tags: 文件pyimageweb应用程序flask示例here