【问题标题】:How to solve "Exception: you need a C compiler to build uWSGI" on ubuntu 18.04?如何在 ubuntu 18.04 上解决“异常:您需要 C 编译器来构建 uWSGI”?
【发布时间】:2021-02-09 06:44:33
【问题描述】:

我正在尝试通过"pip install uWSGI==2.0.4" 安装"uWSGI==2.0.4",我已经安装了gcc 7.5.0 和 build-essentials 等。它仍然显示

以下错误:

conf = uc.uConf(get_profile())
    File "uwsgiconfig.py", line 682, in __init__
      raise Exception("you need a C compiler to build uWSGI")
  Exception: you need a C compiler to build uWSGI
  ----------------------------------------
  ERROR: Failed building wheel for uWSGI

操作系统:Ubuntu-18.04

Python版本:python2.7

我该如何解决这些错误?

【问题讨论】:

  • 你在 uwsgi 之前安装了 gcc 吗?

标签: python-2.7 gcc pip ubuntu-18.04 uwsgi


【解决方案1】:

请尝试不同版本的uWSGI

尝试安装低于版本

uWSGI==2.0.17 通过 pip install uwsgi==2.0.17

它对我有用

【讨论】:

    猜你喜欢
    • 2018-12-05
    • 1970-01-01
    • 1970-01-01
    • 2020-11-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多