Skip to content

Instantly share code, notes, and snippets.

@vanessa
Created March 14, 2018 06:28
Show Gist options
  • Save vanessa/10ca148ff8c61572e6a52e9185d13ed2 to your computer and use it in GitHub Desktop.
Save vanessa/10ca148ff8c61572e6a52e9185d13ed2 to your computer and use it in GitHub Desktop.
$ wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz

$ tar xvf Python-3.6.3.tgz

$ cd Python-3.6.3

$ ./configure --enable-optimizations

$ make -j8

$ sudo make altinstall

$ which python3.6
/usr/local/bin/python3.6

$ sudo ln -fs /usr/local/bin/python3.6 /usr/bin/python
$ python --version
python 3.6
$ sudo python -m pip install setuptools --upgrade  
$ sudo python -m pip install pip --upgrade
$ sudo python -m pip install pipenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment