Last active
June 20, 2024 08:13
-
-
Save rfletchr/c49a0230430f9765fe9bc924ca4c5b3a to your computer and use it in GitHub Desktop.
compiling python on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
sudo apt install libxcb-cursor0 - y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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