Skip to content

Instantly share code, notes, and snippets.

@rfletchr
Last active June 20, 2024 08:13
Show Gist options
  • Save rfletchr/c49a0230430f9765fe9bc924ca4c5b3a to your computer and use it in GitHub Desktop.
Save rfletchr/c49a0230430f9765fe9bc924ca4c5b3a to your computer and use it in GitHub Desktop.
compiling python on Ubuntu
# this will build and install python-3.12 with all features enabled.
sudo apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget libsqlite3-dev libbz2-dev liblzma-dev tk-dev libgdbm-compat-dev
wget https://www.python.org/ftp/python/3.12.1/Python-3.12.1.tgz
tar -xf Python-3.12.1.tgz
cd Python-3.12.1
./configure --enable-optimizations
sudo make -j 16 altinstall
#
sudo apt install libxcb-cursor0 - y
# A set of scripts for bootstrapping an Ubuntu install for development.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment