Skip to content

Installation

Tullio Loffredo edited this page Jun 4, 2023 · 7 revisions

This software is published to PyPI index.

Requirements

python 3.9+

Installation procedure

From binaries

In order to install the software from binaries, run the following command:

python3 -m pip install tulliolo.bip39

N.B.: you may need to add the installation directory in the $PATH environmental variable. For a Linux installation it should be $HOME/.local/bin.

From sources

In order to install the software from sources, perform the following steps.

Download and extract sources

Choose a proper directory and run the following commands:

wget https://github.com/tulliolo/bip39/archive/refs/tags/v0.2.tar.gz
tar –xvzf v0.2.tar.gz
cd bip39-0.2

N.B.: "v0.2" is the latest version available at the time of writing. If available, you can replace "v0.2" with a later version of your choice.

[OPTIONAL] Create a virtual environment

You can easily create a virtual environment for this project running the following commands:

python3 -m venv venv
source venv/bin/activate

Install the sources

In order to install the project, run the following command:

python3 -m pip install .

If you want to install and run the tests, run the following commands:

python3 -m pip install -r requirements-dev.txt
python3 -m pytest tests/test_*.py

Check installation

In order to check the installation, run the following command:

bip39-cli -v