- Install Silkaj with Pipenv
- Install libsodium
- Install pipenv
- Retrieve silkaj sources
- Install with dependencies
- Run silkaj
- Activate pipenv shell and run the executable
- Manage Python versions with Pyenv
- Install pyenv on your home
- Install Python version required
- Select Python version for the current shell
install_pipenv.md 1.75 KiB
Install Silkaj with Pipenv
Install libsodium
sudo apt install libsodium23 # Debian Buster
sudo apt install libsodium18 # Debian Stretch
sudo dnf install libsodium # Fedora
Install pipenv
sudo apt install pipenv # Debian ≥ Buster
sudo dnf install pipenv # Fedora
Retrieve silkaj sources
git clone https://git.duniter.org/clients/python/silkaj.git
cd silkaj
Install with dependencies
pipenv install "-e ."
The double quotes are important, if you forget them, pipenv
will install silkaj from pypi
Run silkaj
pipenv run silkaj
- You can create shell alias, for instance for Bash, add in the
~/.bashrc
:
alias silkaj="cd $HOME/silkaj/silkaj && pipenv run silkaj"
Activate pipenv shell and run the executable
pipenv shell
./bin/silkaj
Manage Python versions with Pyenv
If you have trouble with the pipenv install, may be the Python version installed on your system is not up to date. To install and manage easily multiple Python version, use Pyenv:
Install pyenv on your home
curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash
Add in ~/.bash_profile
, in ~/.bashrc
on Fedora or Ubuntu:
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv virtualenv-init -)"
eval "$(pyenv init -)"
export PYENV_ROOT="$HOME/.pyenv"
Reload your bash config:
source ~/.bashrc
or
source ~/.bash_profile
Install Python version required
pyenv install 3.7.2
Select Python version for the current shell
pyenv shell 3.7.2
Pipenv will search the Pyenv
Python version chosen before the system version.