Check Which Packages Installed Inside a Python Virtual Env

When working with Python virtual environment, there is a need to run a stocktake of what is installed inside the environment.

Pip Freeze

The following pip command will show which packages are installed inside a Python virtual environment.

Before running the command, go ahead and activate the virtual environment using the following command (the environment name is dev1).

source dev1/bin/activate

Now I can check which packages are installed.

pip freeze

Leave a comment

Your email address will not be published. Required fields are marked *