Skip to content

Instantly share code, notes, and snippets.

@farmeroy
Last active April 6, 2022 19:58
Show Gist options
  • Save farmeroy/18e5aa05d44fa7d51ff9f6d94e3bc805 to your computer and use it in GitHub Desktop.
Save farmeroy/18e5aa05d44fa7d51ff9f6d94e3bc805 to your computer and use it in GitHub Desktop.
Quickly set up and activate a python virtual environment

Quickly set up and activate a python virtual environment

After delving into Python for a while, I got a bit sick of constantly looking up, typing out, and then forgetting how to initiate and then activate venv... so I wrote a little alias for my .bashrc

alias mkvenv='python3 -m venv venv'
alias venv='source venv/bin/activate'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment