Skip to content

Instantly share code, notes, and snippets.

@LeeiFrankJaw
Last active February 13, 2018 15:54
Show Gist options
  • Save LeeiFrankJaw/edea095637f39d38679dcf512bf6a2f9 to your computer and use it in GitHub Desktop.
Save LeeiFrankJaw/edea095637f39d38679dcf512bf6a2f9 to your computer and use it in GitHub Desktop.
Build python from source
git clone git@github.com:python/cpython.git
cd cpython/
git checkout v3.6.4
sudo apt build-dep python3.5
# git checkout v2.7.14
# sudo apt build-dep python2.7
./configure
# For python2, the default config won't install pip.
# ./configure --with-ensurepip
make
make test
sudo make install
# For python2, if pip is not installed yet, the following will
# bootstrap it.
# sudo -H python -m ensurepip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment