PureOS 10 and Pyenv

March 09, 2024

Official links

Service / App URL
PureOS https://www.docker.com/
Pyenv https://github.com/pyenv/pyenv

Overview

Whilst trialing PureOS 10, I ran in to an issue when attempting to install Python3.12 using pyenv, and thought it may be helpful for others to document my findings here. It comes as no suprise that comprehensive documentation provided by Pyenv exists on this topic.

Steps

Confirming PureOS version:

damon@nomad:~$ cat /etc/os-release 
ID=pureos
NAME=PureOS
PRETTY_NAME="PureOS 10 (Byzantium)"

VERSION_ID="10"
VERSION_CODENAME=byzantium

HOME_URL="https://pureos.net/"
SUPPORT_URL="https://puri.sm/faq/#faq-WherecanIfindoutmoreaboutPureOS"
BUG_REPORT_URL="https://tracker.pureos.net/"

LOGO=pureos-logo-icon
damon@nomad:~$

Required packages, allowing pyenv to do its thing:

damon@nomad:~$ sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev git

Profile picture

Written by Damon Claverie , an avid trail runner, nature enthusiast, and currently working remotely from SE Queensland, Australia.