whoareu@lemmy.ca to ProgrammingEnglish · 6 months agowhich python trick or hack you know that you would want to share?message-squaremessage-square45fedilinkarrow-up198arrow-down12
arrow-up196arrow-down1message-squarewhich python trick or hack you know that you would want to share?whoareu@lemmy.ca to ProgrammingEnglish · 6 months agomessage-square45fedilink
minus-squaredrislands@lemmy.worldlinkfedilinkarrow-up12·6 months agoIf you’re on Linux (or Mac), add an alias to your .bashrc: alias activate="source env/bin/activate" Now you can activate your venv by just running activate in the project root!
minus-squareMalReynolds@slrpnk.netlinkfedilinkEnglisharrow-up2·6 months agoVery nice, now acti in my rc.
If you’re on Linux (or Mac), add an alias to your .bashrc:
Now you can activate your venv by just running
activate
in the project root!Very nice, now acti in my rc.