Last active
October 27, 2018 22:43
-
-
Save ramazanpolat/8041ca68a092370fa64eedac5423da5c to your computer and use it in GitHub Desktop.
Build and install python 3.6.7 from source on Ubuntu 16.04 LTS(Xenial). Includes SSL/TLS for pip.
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
apt install build-essential -y | |
apt install zlib1g-dev -y | |
apt install libssl-dev libncurses5-dev libsqlite3-dev libreadline-dev libtk8.5 libgdm-dev libdb4o-cil-dev libpcap-dev -y | |
apt update | |
apt upgrade | |
git clone https://github.com/deadsnakes/python3.6 | |
cd python3.6 | |
./configure --enable-optimizations | |
# make command will take 10 mins | |
make | |
# make test | |
make install | |
# Collecting setuptools | |
# Collecting pip | |
# Installing collected packages: setuptools, pip | |
# Successfully installed pip-10.0.1 setuptools-39.0.1 | |
python3 -V | |
# Python 3.6.7 | |
pip3 -V | |
#pip 10.0.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6) | |
python3 -m pip install --upgrade pip | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment