bitcoinlib install error, Mac os x

I a mhave problem with install lib on my mac. When i try to install bitcoinlib i have an error -- ERROR: Could not build wheels for scrypt, which is required to install pyproject.toml-based projects... but i have other libraries and i use it, i can't install only this lib. I will be grateful if you help me)

P.S: i just registered here)

[email protected] ~ % pip3 install bitcoinlib 
Defaulting to user installation because normal site-packages is not writeable
Collecting bitcoinlib
  Using cached bitcoinlib-0.6.4-py3-none-any.whl (327 kB)
Collecting SQLAlchemy>=1.4.28
  Using cached SQLAlchemy-1.4.36.tar.gz (8.1 MB)
  Preparing metadata (setup.py) ... done
Collecting fastecdsa>=2.2.3
  Using cached fastecdsa-2.2.3.tar.gz (48 kB)
  Preparing metadata (setup.py) ... done
Collecting numpy>=1.21.0
  Using cached numpy-1.22.3-cp38-cp38-macosx_11_0_arm64.whl (12.7 MB)
Collecting requests>=2.25.0
  Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
Collecting scrypt>=0.8.19
  Using cached scrypt-0.8.20.tar.gz (55 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pyaes==1.6.1
  Using cached pyaes-1.6.1-py3-none-any.whl
Collecting urllib3<1.27,>=1.21.1
  Using cached urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.3-py3-none-any.whl (61 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting charset-normalizer~=2.0.0
  Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Building wheels for collected packages: fastecdsa, scrypt, SQLAlchemy
  Building wheel for fastecdsa (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [49 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.14-arm64-3.8
      creating build/lib.macosx-10.14-arm64-3.8/fastecdsa
      copying fastecdsa/benchmark.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa
      copying fastecdsa/util.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa
      copying fastecdsa/__init__.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa
      copying fastecdsa/keys.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa
      copying fastecdsa/curve.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa
      copying fastecdsa/point.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa
      copying fastecdsa/ecdsa.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa
      creating build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests
      copying fastecdsa/tests/test_point.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests
      copying fastecdsa/tests/test_keygen.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests
      copying fastecdsa/tests/test_nonce_generation.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests
      copying fastecdsa/tests/test_key_recovery.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests
      copying fastecdsa/tests/test_key_export_import.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests
      copying fastecdsa/tests/test_whycheproof_vectors.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests
      copying fastecdsa/tests/__init__.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests
      copying fastecdsa/tests/test_prehashed.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests
      copying fastecdsa/tests/test_brainpool_ecdh.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests
      copying fastecdsa/tests/test_rfc6979_ecdsa.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests
      copying fastecdsa/tests/test_whitespace_parsing.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests
      copying fastecdsa/tests/test_prime_field_curve_math.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests
      copying fastecdsa/tests/test_p256_ecdsa.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests
      creating build/lib.macosx-10.14-arm64-3.8/fastecdsa/encoding
      copying fastecdsa/encoding/pem.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/encoding
      copying fastecdsa/encoding/util.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/encoding
      copying fastecdsa/encoding/__init__.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/encoding
      copying fastecdsa/encoding/sec1.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/encoding
      copying fastecdsa/encoding/der.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/encoding
      copying fastecdsa/encoding/asn1.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/encoding
      creating build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests/encoding
      copying fastecdsa/tests/encoding/test_sec1.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests/encoding
      copying fastecdsa/tests/encoding/__init__.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests/encoding
      copying fastecdsa/tests/encoding/test_der.py -> build/lib.macosx-10.14-arm64-3.8/fastecdsa/tests/encoding
      running build_ext
      building 'fastecdsa.curvemath' extension
      creating build/temp.macosx-10.14-arm64-3.8
      creating build/temp.macosx-10.14-arm64-3.8/src
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Isrc/ -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c src/curveMath.c -o build/temp.macosx-10.14-arm64-3.8/src/curveMath.o -O2
      In file included from src/curveMath.c:1:
      src/curveMath.h:6:10: fatal error: 'gmp.h' file not found
      #include <gmp.h>
               ^~~~~~~
      1 error generated.
      error: command 'clang' failed with exit status 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for fastecdsa
  Running setup.py clean for fastecdsa
  Building wheel for scrypt (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for scrypt (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [42 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.14-arm64-3.8
      creating build/lib.macosx-10.14-arm64-3.8/scrypt
      copying scrypt/__init__.py -> build/lib.macosx-10.14-arm64-3.8/scrypt
      copying scrypt/scrypt.py -> build/lib.macosx-10.14-arm64-3.8/scrypt
      creating build/lib.macosx-10.14-arm64-3.8/scrypt/tests
      copying scrypt/tests/__init__.py -> build/lib.macosx-10.14-arm64-3.8/scrypt/tests
      copying scrypt/tests/test_scrypt_py2x.py -> build/lib.macosx-10.14-arm64-3.8/scrypt/tests
      copying scrypt/tests/test_scrypt_py3x.py -> build/lib.macosx-10.14-arm64-3.8/scrypt/tests
      copying scrypt/tests/test_scrypt_c_module.py -> build/lib.macosx-10.14-arm64-3.8/scrypt/tests
      copying scrypt/tests/test_scrypt.py -> build/lib.macosx-10.14-arm64-3.8/scrypt/tests
      copying scrypt/tests/ciphertexts.csv -> build/lib.macosx-10.14-arm64-3.8/scrypt/tests
      copying scrypt/tests/hashvectors.csv -> build/lib.macosx-10.14-arm64-3.8/scrypt/tests
      running build_ext
      building '_scrypt' extension
      creating build/temp.macosx-10.14-arm64-3.8
      creating build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1
      creating build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1/lib
      creating build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1/lib/crypto
      creating build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1/lib/scryptenc
      creating build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1/lib/util
      creating build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1/libcperciva
      creating build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1/libcperciva/alg
      creating build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1/libcperciva/crypto
      creating build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1/libcperciva/util
      creating build/temp.macosx-10.14-arm64-3.8/src
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/crypto/crypto_scrypt.c -o build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1/lib/crypto/crypto_scrypt.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/crypto/crypto_scrypt_smix.c -o build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1/lib/crypto/crypto_scrypt_smix.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/crypto/crypto_scrypt_smix_sse2.c -o build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1/lib/crypto/crypto_scrypt_smix_sse2.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/scryptenc/scryptenc.c -o build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1/lib/scryptenc/scryptenc.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/scryptenc/scryptenc_cpuperf.c -o build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1/lib/scryptenc/scryptenc_cpuperf.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/util/memlimit.c -o build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1/lib/util/memlimit.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/libcperciva/alg/sha256.c -o build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1/libcperciva/alg/sha256.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/libcperciva/crypto/crypto_aes.c -o build/temp.macosx-10.14-arm64-3.8/scrypt-1.2.1/libcperciva/crypto/crypto_aes.o
      scrypt-1.2.1/libcperciva/crypto/crypto_aes.c:6:10: fatal error: 'openssl/aes.h' file not found
      #include <openssl/aes.h>
               ^~~~~~~~~~~~~~~
      1 error 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 scrypt
  Building wheel for SQLAlchemy (setup.py) ... done
  Created wheel for SQLAlchemy: filename=SQLAlchemy-1.4.36-cp38-cp38-macosx_10_14_arm64.whl size=1555877 sha256=65a4688236ff44e0fd05259ab30cd09bd9f512b04ae311d30675fe0b5eda50ad
  Stored in directory: /Users/Evgeny/Library/Caches/pip/wheels/47/b7/10/080836da0d570aa79c319942a3244023109239a4fba388a5c3
Successfully built SQLAlchemy
Failed to build fastecdsa scrypt
ERROR: Could not build wheels for scrypt, which is required to install pyproject.toml-based projects
[email protected] ~ % 

Ответы (0 шт):