Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save slitayem/5d0d9ba1e726b0cf07f089f903058cdc to your computer and use it in GitHub Desktop.
Save slitayem/5d0d9ba1e726b0cf07f089f903058cdc to your computer and use it in GitHub Desktop.
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3

Pip3 is installed with Python3

Installation

To install virtualenv via pip run:

$ pip3 install virtualenv
Uasge

Creation of virtualenv:

$ virtualenv -p python3 <name>

Activate the virtualenv:

$ source <name>/bin/activate

Deactivate the virtualenv:

$ deactivate

About Virtualenv

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