Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setting up and using Python3 Virtualenv

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ sudo apt-get install python3 python3-pip
Installation

To install virtualenv via pip run:

$ [sudo] pip3 install virtualenv
Uasge

Creation of virtualenv:

$ virtualenv <name> --no-site-packages

Activate the virtualenv:

$ source <name>/bin/activate

Deactivate the virtualenv:

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