Skip to content

Instantly share code, notes, and snippets.

@coopbri
Created April 27, 2020 04:19
Show Gist options
  • Save coopbri/6b8db94c6c3adb5b902362cd803184cc to your computer and use it in GitHub Desktop.
Save coopbri/6b8db94c6c3adb5b902362cd803184cc to your computer and use it in GitHub Desktop.
Create a Python virtual environment with `virtualenv`
#!/bin/sh
# Create a Python virtual environment with `virtualenv`
#
# Other options exist for creating and managing virtual environments, such as:
# Conda: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
# Pipenv: https://pipenv.pypa.io/en/latest/
virtualenv venv/ # Create virtual environment -- `venv` can be anything you'd like
source venv/bin/activate # Activate virtual environment in session (change `venv` according to your selection in above command)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment