Last active
February 17, 2020 22:35
-
-
Save skelsec/70ffc8d854c34c7dfae5b237158824d1 to your computer and use it in GitHub Desktop.
Python3.7 install from source under Ubuntu 18.04
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
# following script will comiple and install Python3.7.1 for Ubuntu 18.04 | |
# the new python version will appear as "python3.7" and "pip3.7" | |
# | |
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev | |
cd /usr/src | |
wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz | |
tar xvf Python-3.7.1.tgz | |
cd Python-3.7.1 | |
./configure --enable-optimizations | |
make test | |
make altinstall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment