Skip to content
Snippets Groups Projects
Commit 2e3b9210 authored by Moul's avatar Moul
Browse files

[doc] #182: Delete Pipenv documentation

parent e626eb0c
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,6 @@ pip3 install silkaj --user
```
- [Install with Pip](doc/install_pip.md)
- [Install with pipenv](doc/install_pipenv.md)
- [Install the Development environment](doc/install_poetry.md)
- [Install with the build](doc/install_build.md)
- [Install with docker](doc/install_docker.md)
......
# Install Silkaj with Pipenv
### Install libsodium
```bash
sudo apt install libsodium23 # Debian Buster
sudo apt install libsodium18 # Debian Stretch
sudo dnf install libsodium # Fedora
```
### Install pipenv
```bash
sudo apt install pipenv # Debian ≥ Buster
sudo dnf install pipenv # Fedora
```
- [Pipenv installation instructions](https://github.com/pypa/pipenv#installation)
### Retrieve silkaj sources
```bash
git clone https://git.duniter.org/clients/python/silkaj.git
cd silkaj
```
### Install with dependencies
```bash
pipenv install "-e ."
```
The double quotes are important, if you forget them, `pipenv` will install silkaj from pypi
### Run silkaj
```bash
pipenv run silkaj
```
- You can create shell alias, for instance for Bash, add in the `~/.bashrc`:
```bash
alias silkaj="cd $HOME/silkaj/silkaj && pipenv run silkaj"
```
### Activate pipenv shell and run the executable
```bash
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
```bash
curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash
```
Add in `~/.bash_profile`, in `~/.bashrc` on Fedora or Ubuntu:
```bash
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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment