Installation
There are two main ways to install py-bitcoinkernel:
- Installing a pre-compiled wheel from
PyPI, if it is available
for your platform. This is the fastest way to install
py-bitcoinkernel, and does not introduce any further dependencies. This approach requires you to trust the wheel build system. - Installing from source) and letting
pipcompile the dependencies locally. This allows you to compilelibbitcoinkernelfrom source, and is the only way to installpy-bitcoinkernelon platforms where a pre-compiled wheel is not available. It is significantly slower than installing a wheel, and requires a number of dependencies to be installed.
Install from wheel
To install a pre-compiled wheel from PyPI, simply run:
Install from source
You can clone this repository and run:
Alternatively, you can install the source distribution from PyPI:
Note
When installing from source, pip will automatically compile
libbitcoinkernel from the bundled source code in depend/bitcoin/.
This process may take a while. To inspect the build progress, add -v
to your pip command, e.g. pip install . -v.
Requirements
This project requires Python 3.10+ and pip.
When installing from source, additional requirements apply:
- The minimum system requirements, build requirements and dependencies
to compile libbitcoinkernel from source. See Bitcoin Core's
documentation
(Unix,
macOS,
Windows)
for more information.
- Note: libevent is a required dependency for Bitcoin Core, but not
for libbitcoinkernel.