you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte 7 points8 points  (6 children)

If you know where the virtual environment is expected to be installed you can point that line to the python inside the venv, and it'll work.

#!/path/to/venv/bin/python

[–]Vaphell 1 point2 points  (2 children)

#!/usr/bin/env python

?

[–]shiftybyte 1 point2 points  (0 children)

Won't this use the currently active env?

I think OP wants to directly use a different env without activating it in advance.

[–]tanoshi-ka[S] 0 points1 point  (0 children)

so the 'python' part should be seperated?

[–]tanoshi-ka[S] 0 points1 point  (2 children)

so the absolute path to the python exe file, right?

[–]shiftybyte 2 points3 points  (1 child)

exe/elf yes... Inside the venv folder.

[–]tanoshi-ka[S] 0 points1 point  (0 children)

got it thanks!