【发布时间】:2020-10-28 12:00:11
【问题描述】:
使用 gunicorn 运行烧瓶应用程序
$ pip install gunicorn
$ gunicorn --bind 0.0.0.0:8000 app:app
出现错误
Traceback(最近一次调用最后一次): _run_module_as_main 中的文件“C:\Users\shubham\AppData\Local\Programs\Python\Python37\lib\runpy.py”,第 193 行 "main", mod_spec) run_code 中的文件“C:\Users\shubham\AppData\Local\Programs\Python\Python37\lib\runpy.py”,第 85 行 执行(代码,run_globals) 文件“C:\Users\shubham\Desktop\Full_stack_developer\venv\Scripts\gunicorn.exe_main.py”,第 5 行,在 文件“c:\users\shubham\desktop\full_stack_developer\venv\lib\site-packages\gunicorn\app\wsgiapp.py”,第 9 行,在 从 gunicorn.app.base 导入应用程序 文件“c:\users\shubham\desktop\full_stack_developer\venv\lib\site-packages\gunicorn\app\base.py”,第 11 行,在 从 gunicorn 导入实用程序 文件“c:\users\shubham\desktop\full_stack_developer\venv\lib\site-packages\gunicorn\util.py”,第 9 行,在 导入 fcntl ModuleNotFoundError: 没有名为“fcntl”的模块
【问题讨论】:
标签: python flask server gunicorn