Skip to content

Instantly share code, notes, and snippets.

View farmeroy's full-sized avatar

Raffaele Cataldo farmeroy

View GitHub Profile
@farmeroy
farmeroy / venv-alias.md
Last active April 6, 2022 19:58
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'