Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What about working from SSH?

import sys; print(sys.executable)

gives me

/home/ichux/wingpro/venv-django2.2/bin/python

But the Python shell that is connected by SSH gives me

/usr/bin/python

I basically want to use the one that is from the virtualenv. How do I go about it? Please note that I tried setting it as instructed above but it did not work.

What about working from with a remote host configuration, via SSH?

import sys; print(sys.executable)

gives me

/home/ichux/wingpro/venv-django2.2/bin/python

But the Python shell that is connected by SSH gives me

/usr/bin/python

I basically want to use the one that is from the virtualenv. How do I go about it? Please note that I tried setting it as instructed above but it did not work.