pyinstaller 发布fastapi 闪退
import uvicorn
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def root():
return {"hello": "world"}
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=8000)
import uvicorn
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def root():
return {"hello": "world"}
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=8000)