You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

MacOS下Python版Quickfix库安装失败求助

在Apple M2芯片的MacOS Ventura 15.1上安装quickfix 1.15.1(Python版)失败求助

环境信息

  • 系统:MacOS Ventura 15.1
  • 芯片:Apple M2
  • Python版本:3.9.6
  • Clang版本:14.0.0
  • 目标安装包:quickfix 1.15.1(Python绑定版)

已尝试的安装步骤

  1. 直接执行pip3 install quickfix,安装失败;
  2. 从PyPI下载源码包后,分别执行pip3 install .和pip3 install . --no-binary=:all --user --no-cache-dir,均失败;
  3. 从GitHub克隆quickfix的C++源码,依次执行./bootstrap、./configure --with-python3、sudo make install,仍失败。

错误信息

三种方式均触发相同的编译错误,关键报错如下:

Testing for std::tr1::shared_ptr...
test_std_tr1_shared_ptr.cpp:1:10: fatal error: 'tr1/memory' file not found
#include <tr1/memory>
~~~~~~~~~~~~~~
1 error generated.
...not found
Testing for std::shared_ptr...
...found
Testing for std::unique_ptr...
...found

C++/AtomicCount.h:163:11: error: unrecognized instruction mnemonic
                "lock\n\t"
                ^
      <inline asm>:1:2: note: instantiated into assembly here
              lock
              ^
      In file included from C++/DataDictionary.cpp:26:
...
C++/AtomicCount.h:163:18: error: unrecognized instruction mnemonic, did you mean: add, addp, adds, addv, fadd, madd?
                "lock\n\t"
                       ^
      <inline asm>:2:2: note: instantiated into assembly here
              xadd x9, [x8]
              ^

fatal error: too many errors emitted, stopping now [-ferror-limit=]
      2 warnings and 20 errors generated.
      error: command '/usr/bin/clang' failed with exit code 1

已查阅多个相关问题线程、官方文档及类似技术帖子,均未找到可行解决方案,特此求助。

内容的提问来源于stack exchange,提问作者ruvenij

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.07 03:45:49