First time here? Check out the FAQ!

Revision history  [back]

What about working 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.

What about working with a remote host configuration, via 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.