Skip to content

Instantly share code, notes, and snippets.

@Obaitan
Forked from ashutoshkrris/pipenv_cheatsheet.md
Created January 6, 2022 09:24
Show Gist options
  • Save Obaitan/819a6dcbe36adbbe3a95d9c175dafca5 to your computer and use it in GitHub Desktop.
Save Obaitan/819a6dcbe36adbbe3a95d9c175dafca5 to your computer and use it in GitHub Desktop.
Pipenv Cheat Sheet

Pipenv Cheat Sheet

Install pipenv

pip install pipenv

Activate pipenv

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 *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment