r/Python • • Dec 18 '18

Python Virtual Environments: Extreme Advertising Edition

Post image
2.1k Upvotes

287 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Dec 18 '18

On linux I just make an alias function "activate <name of venv>" that looks at my venv folder for a folder with the name <name of venv>, and gets the bin/activate from there.

1

u/noobcola Dec 18 '18

I used pyenv back in the day - it would automatically bin/activate if you just cd into a project folder (this behavior is configurable)

1

u/selectnull Dec 18 '18

I wrote [ave](https://github.com/selectnull/ave) just for that, it's flexible with where you keep you virtual environments and is pip installable.