Skip to content

Instantly share code, notes, and snippets.

@andybe
Created October 31, 2020 09:57
Show Gist options
  • Save andybe/4ab4a17ae47c1908cf8be8ec9a8a4eef to your computer and use it in GitHub Desktop.
Save andybe/4ab4a17ae47c1908cf8be8ec9a8a4eef to your computer and use it in GitHub Desktop.
python 3.8 on debian buster
sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev \
libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev
wget https://www.python.org/ftp/python/3.8.6/Python-3.8.6.tgz
tar xzf Python-3.8.6.tgz
cd Python-3.8.6
./configure --enable-optimizations --prefix=/opt/python/3.8
make -j$(nproc)
sudo make altinstall
export PATH=/opt/python/3.8/bin:$PATH
or create your venv
/opt/python/3.8/bin/python3.8 -m venv venv
source venv/bin/activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment