在构建成功 heroku git push heroku main后。当我执行那个 gunicorn --bind 0.0.0.0:8000 app:app 我得到这个错误。我搜索google 但没有找到答案。使用 procfile 数据为 web: gunicorn tictactoe.wsgi .tictactoe 我的项目名称。
Traceback (most recent call last):
File "c:\users\anves\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\anves\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\anves\AppData\Local\Programs\Python\Python39\Scripts\gunicorn.exe\__main__.py", line 4, in <module>
File "c:\users\anves\appdata\local\programs\python\python39\lib\site-packages\gunicorn\app\wsgiapp.py", line 9, in <module>
from gunicorn.app.base import Application
File "c:\users\anves\appdata\local\programs\python\python39\lib\site-packages\gunicorn\app\base.py", line 11, in <module>
from gunicorn import util
File "c:\users\anves\appdata\local\programs\python\python39\lib\site-packages\gunicorn\util.py", line 8, in <module>
import fcntl
File "c:\users\anves\appdata\local\programs\python\python39\lib\site-packages\fcntl.py", line 1, in <module>
import ffi
ModuleNotFoundError: No module named 'ffi'
答案 0 :(得分:0)
可能有两种情况: