Hypercorn在折叠中找不到主模块

2024-04-26 11:45:52 发布

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

我使用的是Quart(Flask async)和debug=True及其内置的Hypercorn服务器,但每次我保存文件并尝试重新启动应用程序时,我都会得到:

C:\Users\myusername.virtualenvs\App-GtW9WS3s\Scripts\python.exe: can't find '__main__' module in 'C:\Users\myusername\OneDrive'

我认为这与Hypercorn有关,但老实说,它可能是任何东西,关于这个错误的问题有很多不同的解决方案。在

我在Windows10上运行Pipenv一点也不值钱。在

在运行.py公司名称:

from app import app as application

application.run(debug=True, host="gabriel.corp.carusojrea.com.br")

应用程序/初始版本:

^{pr2}$

Tags: 文件debug服务器trueapp应用程序flaskasync