$> apt-get update && sudo apt-get upgrade
$> apt-get install -y make build-essential libssl-dev zlib1g-dev
$> apt-get install -y libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm
$> apt-get install -y libncurses5-dev libncursesw5-dev xz-utils tk-dev
$> wget https://www.python.org/ftp/python/3.7.7/Python-3.7.7.tgz
$> tar xvf Python-3.7.7.tgz
$> cd Python-3.7.7
$> ./configure --enable-optimizations
$> make -j8
$> make altinstall
$> update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 0
$> update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.7 1
$> update-alternatives --config python
Last active
September 29, 2021 19:25
-
-
Save rdenadai/d0b5b05b9b7ee4cb9824fbb15e29be67 to your computer and use it in GitHub Desktop.
Update python on debian
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment