I'm using paramiko
's SSHClient to control a server via exec_command
method. However, I'm failing to use python over there because it says python not found
and I realized the entire conda
enviroment is not there. On my local machine, I get around it with shell=True
passed to subprocess
. Question: how do I do this on paramiko, or, is there another command that I should run to get conda
to be loaded up in server's shell.
EDIT: the exec_command
offers environment
optional keyword but I don't know how to leverage it if it is useful at all.