- Install libsecp256k1 via Homebrew. If you don't have Homebrew then follow the installation instructions on their website.
brew install libsecp256k1
- Install wheel (reminder: you do all pip-things under your Python environment):
pip install wheel
- Install secp256k1 providing Homebrew's paths to libsecp256k1:
INCLUDE_DIR=$(brew --prefix libsecp256k1)/include LIB_DIR=$(brew --prefix libsecp256k1)/lib pip install --no-binary secp256k1 secp256k1==0.13.2
or for the latest version:
INCLUDE_DIR=$(brew --prefix libsecp256k1)/include LIB_DIR=$(brew --prefix libsecp256k1)/lib pip install --no-binary secp256k1 secp256k1
- Install py-binance-chain:
pip install py-binance-chain
- Finally, install xchainpy packages. There are options:
a) From PyPi. For example:
pip install xchainpy_crypto xchainpy_thorchain
b) Directly from GitHub.
You can use install_xchainpy_git.sh script. Inside it you should specify the commit hash or branch name.