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