Быстрое исправление для сбоя установки библиотеки Python в MacOSPython

Программы на Python
Ответить
Anonymous
 Быстрое исправление для сбоя установки библиотеки Python в MacOS

Сообщение Anonymous »

Я пытаюсь установить быстрое исправление 1.15.1 (последняя доступная версия) в MacOS.
Версия ОС — Ventura 15.1. Чип — Apple M2.
Версия Python — 3.9.6. Версия Clang — 14.0.0.
Но установка не удалась.
Я выполнил следующие шаги.
  • Пытался установить с помощью быстрого исправления установки pip3. Не удалось.
  • Загрузил исходный пакет с pypi и попытался установить пакет с помощью pip3 install . и pip3 install . --no-binary=:all --user --no-cache-dir. Не удалось.
  • Клонировал исходный код быстрого исправления C++ из github и попытался установить библиотеку с помощью команд ./boostrap, ./configure --with-python3 и sudo make install. Это тоже не удалось.
Ошибка, которую я получаю при попытке установить библиотеку на всех трех вышеуказанных этапах, выглядит следующим образом.

Код: Выделить всё

Processing /Users/user/Dependencies/quickfix-1.15.1
Preparing metadata (setup.py) ... done
Building wheels for collected packages: quickfix
Building wheel for quickfix (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─\> \[248 lines of output\]
Testing for std::tr1::shared_ptr...
test_std_tr1_shared_ptr.cpp:1:10: fatal error: 'tr1/memory' file not found
\#include \
^\~\~\~\~\~\~\~\~\~\~\~
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"
^
:1:2: note: instantiated into assembly here
lock
^
In file included from C++/DataDictionary.cpp:26:
In file included from C++/DataDictionary.h:30:
In file included from C++/FieldMap.h:30:
In file included from C++/MessageSorters.h:30:
In file included from C++/SharedArray.h:26:
C++/AtomicCount.h:163:18: error: unrecognized instruction mnemonic, did you mean: add, addp, adds, addv, fadd, madd?
"lock\n\t"
^
: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
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for quickfix
Running setup.py clean for quickfix
Failed to build quickfix
Installing collected packages: quickfix
Running setup.py install for quickfix ... error
error: subprocess-exited-with-error

× Running setup.py install for quickfix did not run successfully.

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
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> quickfix

note: This is an issue with the package mentioned above, not pip.
Просмотрел различные темы и документацию по проблемам, но пока не нашел решения. Нашел похожий пост о переполнении стека. Но и там решения найти не удалось.


Подробнее здесь: https://stackoverflow.com/questions/748 ... s-in-macos
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Python»