【问题标题】:Python (pip) package installation fails with 'fatal error: limits.h: No such file or directory'Python (pip) 包安装失败并出现“致命错误:limits.h:没有这样的文件或目录”
【发布时间】:2016-12-10 18:01:44
【问题描述】:

当我尝试安装某个 python 包(hunspell)时,它失败并出现以下错误:

/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:168:61:
fatal error: limits.h: No such file or directory

知道如何解决这个问题吗?

我正在安装全新的 Linux Mint 18 'Sarah'。

【问题讨论】:

    标签: python gcc g++ pip


    【解决方案1】:

    另一个论坛上有人建议更新 g++ 编译器

    sudo apt-get install g++
    

    然后重新启动 pip 安装

    我不确定到底是什么问题,但它确实有效!
    如果有人可以解释这里发生了什么,请在 cmets 中解释。

    【讨论】:

    猜你喜欢
    • 2015-09-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-04
    • 2016-02-10
    • 2018-02-27
    • 1970-01-01
    • 2019-03-05
    相关资源
    最近更新 更多