Skip to content

Instantly share code, notes, and snippets.

@saurabh-hirani
Created February 1, 2020 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saurabh-hirani/3a2d582d944a792d0e896892e0ee0dea to your computer and use it in GitHub Desktop.
Save saurabh-hirani/3a2d582d944a792d0e896892e0ee0dea to your computer and use it in GitHub Desktop.
Python3 virtualenv setup

Steps to install and activate virtualenv:

  1. Install virtualenv module:

    # sudo pip3 install virtualenv

  2. Change to project directory:

    # python3 -m virtualenv venv

  3. Activate the virtual env:

    # source ./venv/bin/activate

  4. Install pre-requisites modules:

    # pip3 install -r requirements.txt

Steps to deactivate virtualenv:

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