Last active
October 27, 2022 13:54
-
-
Save Konstantin-Dudersky/2e5dfad8ff49c749e4421f87574b6713 to your computer and use it in GitHub Desktop.
Build python from source
This file contains 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
# https://www.python.org/ftp/python | |
PYTHON_VER=3.10.6 | |
sudo apt -y install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libsqlite3-dev \ | |
&& sudo apt -y install libssl-dev libsqlite3-dev libreadline-dev libffi-dev libbz2-dev liblzma-dev \ | |
&& wget https://www.python.org/ftp/python/$PYTHON_VER/Python-$PYTHON_VER.tgz \ | |
&& tar -xf Python-$PYTHON_VER.tgz \ | |
&& cd Python-$PYTHON_VER \ | |
&& ./configure --enable-optimizations && make -j "$(nproc)" \ | |
&& sudo make altinstall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment