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

使用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
    关注

    把代码给我看看

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

报告相同问题?

悬赏问题

  • ¥15 verilog modelsim仿真
  • ¥15 Power BI 里面 帕累托图突出显示前20
  • ¥50 用预估矫正法,分数阶微分方程组传染病的最优控制代码怎么写
  • ¥15 画个数据流程图,手画也行
  • ¥60 AS自带模拟器AVD Root 和 Xposed安装
  • ¥30 哪位搞Android的编程师可以帮我远程一下,悬赏30元
  • ¥15 solidity部署上合约,可以mint,也继承接口了,在区块链也不显示代币名字
  • ¥15 讨论 博士论文交互项怎么讨论?
  • ¥50 在集成BiLSTM和GCN模型时遇到了问题
  • ¥33 集成BiLSTM模型和GCN模型时,前模型的输出不匹配后模型的输入