Created
November 26, 2019 16:29
-
-
Save ianling/0b3c7e5dc6e1e0ddcc4f1cf10d5b0e3b to your computer and use it in GitHub Desktop.
Installs python3.8.0 from source on Ubuntu Xenial
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
sudo apt install wget build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev libffi-dev uuid-dev | |
wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tar.xz | |
tar xf Python-3.8.0.tar.xz | |
cd Python-3.8.0 | |
./configure --enable-optimizations --prefix=/usr | |
make -j 8 | |
sudo make install | |
cp -R /usr/lib/python3/dist-packages/CommandNotFound/ /usr/lib/python3.8/site-packages/ | |
cp -R /usr/lib/python3/dist-packages/lsb_release.py /usr/lib/python3.8/site-packages/ | |
sudo make install | |
cd .. | |
rm -rf Python-3.8.0 | |
wget https://files.pythonhosted.org/packages/ce/ea/9b445176a65ae4ba22dce1d93e4b5fe182f953df71a145f557cffaffc1bf/pip-19.3.1.tar.gz | |
tar xf pip-19.3.1.tar.gz | |
cd pip-19.3.1 | |
cp -R src/pip /usr/lib/python3.8/site-packages | |
wget https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa/+files/python3.8-gdbm_3.8.0-1+xenial2_amd64.deb | |
dpkg-deb -R python3.8-gdbm_3.8.0-1+xenial2_amd64.deb tmp | |
cp -R tmp/usr / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment