Skip to content

Latest commit

 

History

History
75 lines (54 loc) · 1.7 KB

README-Linux.md

File metadata and controls

75 lines (54 loc) · 1.7 KB

Debian GNU/Linux

Prerequisites

python, venv, pip, git, pipx, pipenv, pyenv

System-Wide

sudo apt install build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncursesw5-dev xz-utils \
tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev

python, venv, pip, git

sudo apt install python3-venv python3-pip python3-dev git

User Specific

pipx, pipenv

In order to keep your system's Python untainted, every project should be contained in a virtual environment. Moreover, use pipx to install pipenv in order to keep the application and support libraries isolated from the general environment. Therefore, install pipx (system-wide) first and then pipenv for the environment management.

sudo apt install pipx
pipx ensurepath
pipx install pipenv

Moreover, install pyenv to deal with different Python versions safely. The automated installer is recommended and used this way:

curl https://pyenv.run | bash

Edit ~/.bashrc and add the following:

export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"

Finally, restart your shell to instantiate the path, and call the doctor to be safe (check for issues):

exec $SHELL
pyenv doctor

Start

mkdir project_name
cd project_name
pipenv --python 3.11