Skip to content

Instantly share code, notes, and snippets.

@annagat
Forked from bradtraversy/pipenv_cheat_sheet.md
Last active May 29, 2019 02:56
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 annagat/3ae5eec15efb9f10a6f1b9c66ed72a9f to your computer and use it in GitHub Desktop.
Save annagat/3ae5eec15efb9f10a6f1b9c66ed72a9f to your computer and use it in GitHub Desktop.
Pipenv cheat sheet for common commands

Pipenv Cheat Sheet

Install pipenv

pip install pipenv

Activate

pipenv shell

Check version of Python

python --version

Check path

python
>>> import sys
>>> sys.executable
quit()

or

which python

Install a package

pipenv install package-name

Check local packages

pipenv lock -r

Uninstall a package

pipenv uninstall package-name

Install a dev package

pipenv install nose --dev

Install from requirements.txt

pipenv install -r ./requirements.txt

Check security vulnerabilities

pipenv check

Check dependency graph

pipenv graph

Ignore pipfile

pipenv install --ignore-pipfile

Set lockfile - before deployment

pipenv lock

Exiting the virtualenv

exit

Run with pipenv

pipenv run *

Remove virtualenv

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