### Install ledgerblue Source: https://pypi.org/project/ledgerblue Recommended installation steps using a virtual environment to avoid hidapi issues. ```bash python3 -m venv ledger source ledger/bin/activate pip install ledgerblue ``` -------------------------------- ### Install libtool on MacOS Source: https://pypi.org/project/ledgerblue On MacOS, install libtool before installing the custom secp256k1 package to ensure glibtool and glibtoolize are available. ```bash brew install libtool ``` -------------------------------- ### Install Documentation Dependencies Source: https://pypi.org/project/ledgerblue Install the necessary dependencies for generating project documentation. This command should be run from the top of the Git repository. ```bash # from the top of the Git repository pip install .[doc] ``` -------------------------------- ### Install libsecp256k1 with ECDH support Source: https://pypi.org/project/ledgerblue Use this command to install the libsecp256k1 Python bindings with ECDH support, which is an optional feature. ```bash SECP_BUNDLED_EXPERIMENTAL=1 pip --no-cache-dir install --no-binary secp256k1 secp256k1 ``` -------------------------------- ### Generate Project Documentation Source: https://pypi.org/project/ledgerblue Generate the HTML documentation for the project. This command should be run from the top of the Git repository after installing dependencies. ```bash # from the top of the Git repository (cd doc/ && make html) ``` -------------------------------- ### Install PCSC Support Source: https://pypi.org/project/ledgerblue Install PCSC support on Linux using apt and pip. This enables NFC communication with Ledger devices via PCSC readers. ```bash apt install libpcsclite-dev pip3 install pyscard ``` -------------------------------- ### Configure udev rules for Ledger devices on Linux Source: https://pypi.org/project/ledgerblue Add these rules to `/etc/udev/rules.d/` to grant your user access to Ledger devices when running on Linux. Replace `` with your actual username. ```udev SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", MODE="0660", TAG+="uaccess", TAG+="udev-acl" OWNER="" KERNEL=="hidraw*", ATTRS{idVendor}=="2c97", MODE="0660" OWNER="" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.