mac 安装 报错 "/usr/local/include/stdint.h:2:10: error: #include nested too deeply"


 

报错详细信息

构建错误 - “#include嵌套太深”

    /usr/local/include/stdint.h:2:10: error: #include nested too deeply

    #include <stddef.h>

             ^

    /usr/local/include/stdint.h:59:11: error: #include nested too deeply

    # include <stdint.h>

              ^

    /usr/local/include/stdint.h:72:11: error: #include nested too deeply

    # include <sys/types.h>

              ^

    /usr/local/include/stdint.h:76:10: error: #include nested too deeply

    #include <limits.h>

             ^

    /usr/local/include/stdint.h:82:11: error: #include nested too deeply

    # include <inttypes.h>

              ^

解决:

 brew unlink libunistring

 brew uninstall libunistring

 sudo rm /usr/local/include/stdint.h

 brew install libunistring

 

注意:

  这是python3在安装gevent时,报的错,还有安装找不到gevent版本, 切换成清华源就好了,如下

pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple gevent==1.2.2

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM