Skip to content

Instantly share code, notes, and snippets.

@khchine5
Last active January 22, 2016 04:25
Show Gist options
  • Save khchine5/17b9be93b5d52f09ce28 to your computer and use it in GitHub Desktop.
Save khchine5/17b9be93b5d52f09ce28 to your computer and use it in GitHub Desktop.
Installing and using virtualenv with Python3
Update the server
$ apt-get update
Install pip3
$ sudo apt-get install pip3
Install virtualenv via pip
$ pip3 install virtualenv
Create a virtualenvs directory
$ mkdir ~/virtualenvs
Make a new virtual environment
$ virtualenv ~/virtualenvs/my_first_python3
activate the new virtual
$ source ~/virtualenvs/my_first_python3/bin/activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment