在Mac中安装软件包时创建转盘时出错

问题描述

这是我在使用pip install -r req.txt文件安装软件包时收到的错误

然后,它尝试为收集的包裹构建轮子:bliscytoolz; murmurhash; preshed; regex,我得到的错误列表很长。

  typedef __uint32_t      __darwin_useconds_t;    /* [???] microseconds */
          ^
  note: '__uint128_t' declared here
  In file included from python3/_regex.c:46:
  In file included from /Library/Developer/CommandLinetools/Library/Frameworks/python3.framework/Versions/3.8/include/python3.8/Python.h:25:
  In file included from /Library/Developer/CommandLinetools/SDKs/MacOSX.sdk/usr/include/stdio.h:64:
  In file included from /Library/Developer/CommandLinetools/SDKs/MacOSX.sdk/usr/include/_stdio.h:71:
  /Library/Developer/CommandLinetools/SDKs/MacOSX.sdk/usr/include/_types.h:43:9: error: unkNown type name '__uint32_t'; did you mean '__uint128_t'?
  typedef __uint32_t      __darwin_wctype_t;
          ^
  note: '__uint128_t' declared here
  In file included from python3/_regex.c:46:
  In file included from /Library/Developer/CommandLinetools/Library/Frameworks/python3.framework/Versions/3.8/include/python3.8/Python.h:25:
  In file included from /Library/Developer/CommandLinetools/SDKs/MacOSX.sdk/usr/include/stdio.h:64:
  In file included from /Library/Developer/CommandLinetools/SDKs/MacOSX.sdk/usr/include/_stdio.h:75:
  In file included from /Library/Developer/CommandLinetools/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h:31:
  /Library/Developer/CommandLinetools/SDKs/MacOSX.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
  #error architecture not supported
   ^
  Fatal error: too many errors emitted,stopping Now [-ferror-limit=]
  20 errors generated.
  error: command 'xcrun' Failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for regex```

Is something wrong with MacOS side because it is giving me bizarre errors.
Any leads appreciated.

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)