Skip to content

Instantly share code, notes, and snippets.

@datagrok
Last active April 8, 2023 17:36
Show Gist options
  • Save datagrok/2199506 to your computer and use it in GitHub Desktop.
Save datagrok/2199506 to your computer and use it in GitHub Desktop.
Virtualenv's `bin/activate` is Doing It Wrong
@johndpope
Copy link

@Acrisel
Copy link

Acrisel commented Jul 14, 2017

This is great. I would just note that there is no need to hard code the path of the virtualenv in shell and batch scripts. It can and should be relative.

@mmerickel
Copy link

mmerickel commented Sep 8, 2017

Please also look at vrun [1] which is super lightweight and simply activates a virtualenv for the duration of a command. You run something like env/bin/vrun <cmd> and it is executed with all of the virtualenv scripts etc on the path. This is similar to vex but with fewer assumptions and should be mentioned in the same conversation.

[1] https://pypi.org/project/vrun/

@apoliakov
Copy link

Helpful! Thank you!!

@nmaupu
Copy link

nmaupu commented Jun 21, 2022

404 on the link 👎

@benedikt-bartscher
Copy link

still 404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment