gpt4 book ai didi

xcode - 错误 : unknown type name 'uint64_t' on MacOS while installing libraries

转载 作者:行者123 更新时间:2023-12-04 04:06:18 24 4
gpt4 key购买 nike

尝试安装 Apache Airflow 时不断收到以下错误pip 安装 apache-airflow我删除了命令行工具,将操作系统从 Mojave 升级到 Catalina,使用 xcode-select --install 重新安装了 xcode 即使这样,以下错误也未能得到解决:-

---many similar lines---
In file included from /usr/local/include/stdint.h:59:
In file included from /usr/local/include/stdint.h:59:
In file included from /usr/local/include/stdint.h:59:
/usr/local/include/stdint.h:2:10: error: #include nested too deeply
#include <stddef.h>
^
/usr/local/include/stdint.h:72:11: error: #include nested too deeply
# include <sys/types.h>
^
/usr/local/include/stdint.h:82:11: error: #include nested too deeply
# include <inttypes.h>
^
In file included from src/setproctitle.c:14:
In file included from src/spt.h:15:
In file included from src/spt_python.h:14:

---many similar lines---
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:216:2: error: unknown type name 'uint64_t'
uint64_t ri_wired_size;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'clang' failed with exit status 1

最佳答案

阅读 Github 上的这些问题 https://github.com/giampaolo/psutil/issues/1388https://github.com/cython/cython/issues/2009

将我的文件夹 /usr/local/include 重命名为 /usr/local/include_old 以备不时之需以备不时之需

mv/usr/local/include/usr/local/include_old然后再次运行相同的安装命令:-

pip 安装 apache-airflow这次工作完美无缺。

关于xcode - 错误 : unknown type name 'uint64_t' on MacOS while installing libraries,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62422627/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com