dpv (dee-pee-vee) is a dead simple alternative to pyenv-virtualenv and virtualenvwrapper
- It's simple. Just type
dpv
ordpv <python version>
and get the work done. - It's pure shell and POSIX-compliant tested with: ash bash dash ksh zsh
- It's built to get out of the way!
Think of dpv
as an interface for whaterver of these tools you have installed: uv
, pyenv
, brew
It will automatically pick the one that is available and use it for the job.
- Download
sh -c 'curl -fsSLo $1 https://github.com/caioariede/dpv/releases/download/v0.14.0/dpv && chmod +x $1' -- /usr/local/bin/dpv
Optional: in case your /usr/local/bin
directory is not writable yet, see.
sudo chown -R $(whoami) /usr/local/bin
sudo chmod -R u=rwX,go=rX /usr/local/bin
- Configure — Add the following line to your .bashrc, .zshrc, etc
eval "$(dpv internal-load-shell)"
Check out more details in the installation instructions
Take a look at the dpv cheatsheet - or for more detailed instructions, check the documentation