DJ.Fate 2021-01-20 09:13 采纳率: 100%
浏览 155
已结题

使用gunicorn出这个错误怎么解决呀?

>gunicorn
Traceback (most recent call last):
  File "c:\users\home\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\home\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\home\AppData\Local\Programs\Python\Python39\Scripts\gunicorn.exe\__main__.py", line 4, in <module>
  File "c:\users\home\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\home\appdata\local\programs\python\python39\lib\site-packages\gunicorn\app\base.py", line 12, in <module>
    from gunicorn.arbiter import Arbiter
  File "c:\users\home\appdata\local\programs\python\python39\lib\site-packages\gunicorn\arbiter.py", line 16, in <module>
    from gunicorn import sock, systemd, util
  File "c:\users\home\appdata\local\programs\python\python39\lib\site-packages\gunicorn\sock.py", line 101, in <module>
    class UnixSocket(BaseSocket):
  File "c:\users\home\appdata\local\programs\python\python39\lib\site-packages\gunicorn\sock.py", line 103, in UnixSocket
    FAMILY = socket.AF_UNIX
AttributeError: module 'socket' has no attribute 'AF_UNIX'

  • 写回答

1条回答 默认 最新

  • 「已注销」 2021-01-20 09:38
    关注

    把代码给我看看

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥60 不懂得怎么运行下载来的代码
  • ¥15 CST导出3D模型图为什么和软件显示不一样?
  • ¥15 加热反应炉PLC控制系统设计(相关搜索:梯形图)
  • ¥15 python 用Dorc包报错,我的写法和网上教的是一样的但是它显示无效参数,是什么问题
  • ¥15 经过滑动平均后的一维信号还原用什么结构好呢?
  • ¥15 指定IP电脑的访问设置
  • ¥30 matlab ode45 未发现警告,但是运行出错
  • ¥15 为什么devc++编译项目会失败啊
  • ¥15 vscode platformio
  • ¥15 代写uni代码,app唤醒