Last active
          February 13, 2018 15:54 
        
      - 
      
- 
        Save LeeiFrankJaw/edea095637f39d38679dcf512bf6a2f9 to your computer and use it in GitHub Desktop. 
    Build python from source
  
        
  
    
      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
    
  
  
    
  | git clone [email protected]: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