DEV Community

Discussion on: Setting Up Python Virtual Environments

Collapse
 
svemaraju profile image
Srikanth

Yes, setting up aliases on your bash profile is neat.
I usually set up something like below for the project I am working on so that with one command it activates the venv and also opens up the project in my favorite editor sublime text. You can also have code . if you use vs code.

alias letswork="cd ~/path/to/project;source env/bin/activate; subl ."
Collapse
 
info5am profile image
Sam

Hey Srikanth, thanks for the valuable tip, I appreciate it!