Install direnv brew install direnv echo 'eval "$(direnv hook bash)"' >> ~/.bashrc # and restart terminal direnv version Installation of Python virtual environment python3 -m venv .venv # python or python3 should already be installed echo 'source .venv/bin/activate' > .envrc