如何解决Flask WSGI处理程序FileNotFoundError:[Errno 2]没有这样的文件或目录
我正在部署python网络应用程序(破折号,烧瓶)。我在此链接中遵循了教程: 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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。