brew install direnvecho 'eval "$(direnv hook bash)"' >> ~/.bashrc# and restart terminaldirenv version
python3 -m venv .venv# python or python3 should already be installedecho 'source .venv/bin/activate' > .envrcdirenv allow
Now, whenever you cd to the folder where the virtual environment is setup,
it will automatically load the the virtual environment for you.