- Installing essentials
sudo apt update &&
sudo apt install -y build-essential zlib1g-dev libssl-dev libreadline-dev libbz2-dev libsqlite3-dev libffi-dev tk-dev
- Installing essentials
sudo pacman -Syu
sudo pacman -S base-devel zlib openssl readline bzip2 sqlite3 libffi tk
- Installing pyenv
curl -sS https://webi.sh/pyenv | sh
Add these to .bashrc
file
open - vim ~/.bashrc
and click on i (insert mode)
## py-env
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
## py-env virtual
eval "$(pyenv virtualenv-init -)"
-
click
esc
and:wq
-
exit
the terminal orctrl + d
-
Installing python3
pyenv install -v 3.11.2 && pyenv global 3.11.2
check the version using python3 --version