Skip to content

Setting Up PyENV for this Repository

Joel Mathew Thomas edited this page Jan 26, 2025 · 11 revisions

Setting Up PyENV for this Repository

This guide provides step-by-step instructions on installing pyenv, configuring it for your shell.


Step 1: Install Pyenv

To install pyenv, run the following commands based on your operating system.

Arch Linux:

sudo pacman -S pyenv

Ubuntu

sudo apt install -y make 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

curl https://pyenv.run | bash

Add the following lines to your shell config , ~/.bashrc if you use bash, or ~/.zshrc if you use zsh

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

Confirming PyENV installation.

pyenv --version

Step 2: Install the required Python version

For this project, we are using Python 3.12.7

pyenv install 3.12.7

Step 3: Setup virtual environments

Navigate to the project directory.

chmod +x ./scripts/setup_env.sh
./scripts/setup_env.sh
Clone this wiki locally