Skip to content

Instantly share code, notes, and snippets.

@merlijntishauser
Last active February 9, 2018 14:05
Show Gist options
  • Save merlijntishauser/c807e9e7936300cc2bec8acc4b937ee8 to your computer and use it in GitHub Desktop.
Save merlijntishauser/c807e9e7936300cc2bec8acc4b937ee8 to your computer and use it in GitHub Desktop.
Python3 venv

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
Usage

Creation of virtualenv:

$ virtualenv -p python3 <desired-path>

Activate the virtualenv:

$ source <desired-path>/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