Skip to content

Instantly share code, notes, and snippets.

@markgreene74
Last active September 15, 2021 22:01
Show Gist options
  • Select an option

  • Save markgreene74/4a15dc703df8db3ed6fbb36a7f56814d to your computer and use it in GitHub Desktop.

Select an option

Save markgreene74/4a15dc703df8db3ed6fbb36a7f56814d to your computer and use it in GitHub Desktop.
pipenv workflow
# https://github.com/pypa/pipenv
pip install --upgrade pip --user
pip install --upgrade pipenv --user
# https://pipenv.pypa.io/en/latest/install/#installing-packages-for-your-project
cd myproject
# install packages
pipenv install requests
# run myscript.py with pipenv
pipenv run python myscript.py
# pipenv shell
pipenv shell
# workflow, useful snippets
pipenv install pytest --dev
pipenv lock
pipenv install --dev
pipenv check
pipenv install --ignore-pipfile
pipenv lock -r > requirements.txt
pipenv lock -r -d > dev-requirements.txt
# ref
# https://realpython.com/pipenv-guide/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment