from waitress import serve # error line
import app # python file where flask code is written
serve(app.app,port=8000,thread=55)
- Python版本:3.7
- 女服务员版本:尝试使用 1.4.1 和 1.3.0*
堆栈跟踪
C:\Users\ashish.kamble\ModelDeployment\Scripts\python.exe C:/Users/ashish.kamble/PycharmProjects/ModelDeployment/waitress.py
Traceback (most recent call last):
File "C:/Users/ashish.kamble/PycharmProjects/ModelDeployment/waitress.py", line 1, in <module>
from waitress import serve
File "C:\Users\ashish.kamble\PycharmProjects\ModelDeployment\waitress.py", line 1, in <module>
from waitress import serve
ImportError: cannot import name 'serve' from 'waitress' (C:\Users\ashish.kamble\PycharmProjects\ModelDeployment\waitress.py)
Process finished with exit code 1