Skip to content

Instantly share code, notes, and snippets.

@automationhacks
Last active January 7, 2024 01:38
Show Gist options
  • Save automationhacks/bd22377389d2c30077502c7af54bac8d to your computer and use it in GitHub Desktop.
Save automationhacks/bd22377389d2c30077502c7af54bac8d to your computer and use it in GitHub Desktop.
Quick setup guide: How to create an empty python3 virtualenv via pipenv and install a module
# install pipenv via homebrew
brew install pipenv
# Create a home directory
mkdir ~/.virtualenvs
# Add below in .zshrc or .bash_profile (if on mac/linux) or in your windows system variables
export WORKON_HOME=~/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# Source the above changes
source .zshrc
# create an empty virtualenv using python3
pipenv --three
# start the new virtualenv
pipenv shell
# install any python module
pipenv install <module_name>
@automationhacks
Copy link
Author

Note: Please use export WORKON_HOME=~/.virtualenvs with the dot in the above. Missing that was a typo.

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