Python 3.x &引用;sanic尝试使用loop.add“U信号”处理程序,但未在此平台上实现”;视窗10
我正在尝试在windows 10上运行基本的sanic应用程序Python 3.x &引用;sanic尝试使用loop.add“U信号”处理程序,但未在此平台上实现”;视窗10,python-3.x,anaconda,sanic,Python 3.x,Anaconda,Sanic,我正在尝试在windows 10上运行基本的sanic应用程序 from sanic import Sanic from sanic.response import json app = Sanic('just-try') @app.route("/") async def test(request): return json({"hello": "world"}) if __name__ == "__main__": app.run(host="0.0.0.0", port=800
from sanic import Sanic
from sanic.response import json
app = Sanic('just-try')
@app.route("/")
async def test(request):
return json({"hello": "world"})
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8000,workers=1)
但它只是停留在那里显示这个警告
sanic尝试使用loop.add\u signal\u处理程序,但未在此平台上实现该处理程序
sanic-19.12.2
python-3.7.6(蟒蛇环境)
操作系统-视窗10
通过运行安装sanic-
set SANIC_NO_UVLOOP=true
set SANIC_NO_UJSON=true
pip install sanic
注意:我必须手动下载并复制aiofiles、hpack、hyperframe、h11、rfc3986和hstspreload到sitepacks文件夹。否则,获取导入错误需要从git安装sanic
set SANIC_NO_UVLOOP=true
set SANIC_NO_UJSON=true
pip install git+https://github.com/huge-success/sanic.git
他们将发布版本20.3,修复与windows相关的错误