china🇨🇳@lemmy.ca to Programming@programming.devEnglish · 1 year agowhich python trick or hack you know that you would want to share?message-squaremessage-square44linkfedilinkarrow-up197arrow-down12
arrow-up195arrow-down1message-squarewhich python trick or hack you know that you would want to share?china🇨🇳@lemmy.ca to Programming@programming.devEnglish · 1 year agomessage-square44linkfedilink
minus-squarebeeng@discuss.tchncs.delinkfedilinkarrow-up43·1 year agoDon’t need to activate your venv to use it. Just use venv/bin/python my-file.py from a script or a terminal from your project root.
minus-squareMojave@lemmy.worldlinkfedilinkarrow-up13arrow-down2·1 year agoYou don’t need to use venv at all, break the mold and do it all global
Don’t need to activate your venv to use it.
Just use
venv/bin/python my-file.pyfrom a script or a terminal from your project root.You don’t need to use venv at all, break the mold and do it all global
/s