# venv

Published 2025-03-20

Good for creating virtual environments when you want to install a nightmare of python tools/dependencies but don't want it to jack up your normal user account installs.

# Install pre-reqs

sudo apt install python3.11-venv

# Setup the virtual environment

python3 -m venv venv
source venv/bin/activate

# Install pipx (if necessary)

pip install pipx

# Install your tools

And then if you want to install something like impacket, go to that directory and:

python3 -m pipx install impacket

# Throw the venv away when done (optional)

When you're ready to throw that env away:

deactivate
rm -rf venv