Skip to content

Instantly share code, notes, and snippets.

@anis016
Last active April 27, 2018 13:33
Show Gist options
  • Save anis016/b2954dcf7d0c1ce3a10d8a20015894c2 to your computer and use it in GitHub Desktop.
Save anis016/b2954dcf7d0c1ce3a10d8a20015894c2 to your computer and use it in GitHub Desktop.
1. Install Python3.6
$ sudo add-apt-repository ppa:jonathonf/python-3.6
$ sudo apt-get update
$ sudo apt-get install python3.6
$ sudo apt install python3.6-dev
2. Install PIP 3.6
First download the file: get-pip.py [source: https://bootstrap.pypa.io/get-pip.py]
$ sudo python3.6 get-pip.py
3. Install virualenv
$ pip install https://github.com/pypa/virtualenv/tarball/master
4. make python3.6 as the default [by using alias as below]
$ vim ~/.bashrc
[add these two lines]
alias python=python3.6
alias pip=pip3.6
once done, then quit vim and then do the source to activate
$ source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment