小编Shu*_*ngh的帖子

ModuleNotFoundError: 没有名为“fcntl”的模块

用于使用 gunicorn 运行的烧瓶应用程序

$ pip install gunicorn
$ gunicorn --bind 0.0.0.0:8000 app:app
Run Code Online (Sandbox Code Playgroud)

出错

回溯(最近一次调用):文件“C:\Users\shubham\AppData\Local\Programs\Python\Python37\lib\runpy.py”,第 193 行,在 _run_module_as_main “ main ”,mod_spec)文件“C:\ Users\shubham\AppData\Local\Programs\Python\Python37\lib\runpy.py”,第 85 行,在run_code exec(code, run_globals) 文件“C:\Users\shubham\Desktop\Full_stack_developer\venv\Scripts\gunicorn .exe_.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 导入 util 文件“c:\users\shubham\desktop\full_stack_developer \venv\lib\site-packages\gunicorn\util.py”,第 9 行,在 import fcntl ModuleNotFoundError: No module named 'fcntl'

python flask gunicorn server

9
推荐指数
2
解决办法
2万
查看次数

标签 统计

flask ×1

gunicorn ×1

python ×1

server ×1