Last active
January 7, 2024 01:38
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: Please use
export WORKON_HOME=~/.virtualenvs
with the dot in the above. Missing that was a typo.