Skip to content

Instantly share code, notes, and snippets.

@mariomartinezsz
Last active July 16, 2017 21:10
Show Gist options
  • Save mariomartinezsz/9fcbce74f0b36ff964c31a38f1555bd6 to your computer and use it in GitHub Desktop.
Save mariomartinezsz/9fcbce74f0b36ff964c31a38f1555bd6 to your computer and use it in GitHub Desktop.
Virtual environments for Python 3 on Ubuntu

Virtual environments for Python 3 on Ubuntu

Install venv:

sudo apt-get install python3-venv

Create a virtual environment:

python3 -m venv env_name

Activate environment:

source env_name/bin/activate

Update pip:

pip install --upgrade pip

Install any package needed, Django by example:

pip install django

Enjoy programming!

Note: deactivate environment any time with:

deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment