Pyenv optimization #19

Open
opened 2025-04-27 11:30:27 +02:00 by tom · 1 comment
Owner

Remove pyenv from apt installation process

# Install base packages
sudo apt-get install -y zsh tmux vim git curl git vim-scripts tmux wget python3-pip jq fzf universal-ctags tree

# Auto pyenv installation
curl -fsSL https://pyenv.run | bash

Add requirements for building Python on Ubuntu/Debian

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

Add Pyenv loader to .zshrc

Ensure Pyenv loader is at the top of .zshrc

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
## Remove pyenv from apt installation process ```shell # Install base packages sudo apt-get install -y zsh tmux vim git curl git vim-scripts tmux wget python3-pip jq fzf universal-ctags tree # Auto pyenv installation curl -fsSL https://pyenv.run | bash ``` ## Add requirements for building Python on Ubuntu/Debian ```shell sudo apt update; sudo apt install build-essential libssl-dev zlib1g-dev \ libbz2-dev libreadline-dev libsqlite3-dev curl git \ libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev ``` ## Add Pyenv loader to .zshrc Ensure Pyenv loader is at the top of .zshrc ```shell export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)" ```
Author
Owner

Pyenv Loader added in 03c597c421

Pyenv Loader added in 03c597c421d1e38ff8b13c4eb58b51b44f0ed286
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
inetsix-configs/dotfiles#19
No description provided.