Skip to content

Instantly share code, notes, and snippets.

@akszydelko
Forked from evansneath/Python3 Virtualenv Setup
Last active November 19, 2020 13:44
Show Gist options
  • Save akszydelko/2562ca2056c7a8e8bdb90e126a1d8bc5 to your computer and use it in GitHub Desktop.
Save akszydelko/2562ca2056c7a8e8bdb90e126a1d8bc5 to your computer and use it in GitHub Desktop.
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