Skip to content

Instantly share code, notes, and snippets.

@madalinpopa
Forked from aroraayush/pipenv_cheat_sheet.md
Created September 14, 2019 18:47
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 madalinpopa/3fa9e3f7e5ba53bda3e904a2895cd527 to your computer and use it in GitHub Desktop.
Save madalinpopa/3fa9e3f7e5ba53bda3e904a2895cd527 to your computer and use it in GitHub Desktop.
Pipenv cheat sheet for common commands

pipenv Cheat Sheet

https://gist.github.com/aroraayush/7b001903885bd35b902269babe2ccea8

Install pipenv
pip3 install pipenv
Activate
pipenv shell
Check version of Python
python --version
Check path
python
>>> import sys
>>> sys.executable
quit()
Install a package
pipenv install camelcase
Check local packages
pipenv lock -r
Uninstall a package
pipenv uninstall camelcase
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 *
Production Setup (Files will be installed from lock file and not Pipfile file)
pipenv lock
pipinstall install --ignore-pipfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment