Gangmax Blog

pip-tools & pipdeptree

pip-tools“ is a set of command line tools to help you keep your pip-based packages fresh, even when you’ve pinned them.

1
2
3
4
# As part of a Python project's environment tooling (similar to pip), it's recommended to install pip-tools in each project's virtual environment:
source /path/to/venv/bin/activate
(venv)$ pip install --upgrade pip # pip-tools needs pip==8.0 or higher (!)
(venv)$ pip install pip-tools

The instructions how to use this tool can be found here.

pipdeptree“ is a command line utility for displaying the installed python packages in form of a dependency tree. It works for packages installed globally on a machine as well as in a virtualenv. To work with packages installed inside a virtualenv, pipdeptree also needs to be installed in the same virtualenv even if it’s already installed globally.

1
2
3
4
# Install 
pip install pipdeptree
# Run
pipdeptree

Comments