Skip to content

Instantly share code, notes, and snippets.

View beyonddream's full-sized avatar
🎯
Focusing

Arun beyonddream

🎯
Focusing
View GitHub Profile
@beyonddream
beyonddream / py_virtual_env_setup.md
Last active December 29, 2025 19:18
Relatively modern python virtual environment setup

Install direnv

  1. brew install direnv
  2. echo 'eval "$(direnv hook bash)"' >> ~/.bashrc # and restart terminal
  3. direnv version

Installation of Python virtual environment

  1. python3 -m venv .venv # python or python3 should already be installed
  2. echo 'source .venv/bin/activate' > .envrc