Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

pyenv

install

# Arch
sudo pacman -S pyenv

1 2

# Ubuntu 22 ARM
sudo apt update
sudo apt-get install -y build-essential curl libbz2-dev libffi-dev liblzma-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev libxml2-dev libxmlsec1-dev llvm make tk-dev wget xz-utils zlib1g-dev
git clone --depth=1 https://github.com/pyenv/pyenv.git ~/.pyenv
vim ~/.zshrc
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
source ~/.zshrc

3 4

# Windows 10
git clone --depth=1 https://github.com/pyenv-win/pyenv-win ~/.pyenv

Personal do

pyenv install 3.11-dev
pyenv global 3.11-dev
pyenv shell 3.11-dev
pip install build wheel

usage

# Windows 10
# mkdir ~/.pyenv/cache
# Put pkg-files into ~/.pyenv/cache
# pyenv install -l | findstr 3.7
# pyenv install 3.7.9-win32
pyenv install -l | findstr 3.11
pyenv install 3.11.9
pyenv shell 3.11

requirement


  1. ubuntu에서 pyenv 설치하기

  2. pyenv install: 3.x BUILD FAILED (Ubuntu 20.04 using python-build 20180424)

  3. Installation

  4. Add System Settings