-
Notifications
You must be signed in to change notification settings - Fork 0
Setting Up PyENV for this Repository
Joel Mathew Thomas edited this page Feb 24, 2025
·
11 revisions
This guide provides step-by-step instructions on installing pyenv, configuring it for your shell.
To install pyenv, run the following commands based on your operating system.
sudo pacman -S pyenvsudo 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 | bashAdd 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 -)"pyenv --versionFor this project, we are using Python 3.12.7
pyenv install 3.12.7Navigate to the project directory, and create a virtual environment. It is not necessary to set the local python version for the directory with pyenv, as the repository already includes the file for that.
python -m venv venv
source venv/bin/activateMake sure the python version used for the venv, is the required one.
python --versionClone the repository and change the directory to it.
Install freqsplit
pip install -e .Install dependencies
pip install -r requirements.txt