I want to run a process (a python program) on a remote machine. I have both Canopy and Anaconda installed.
After I SSH into the remote machine, if I type 'python', I get the python prompt - the Canopy version.
If I type 'screen', hit 'enter', then type 'python', I get the python prompt - the Anaconda version.
I want to use the Canopy version when I'm in 'screen'. How can I do so?
which pythonand later use this full path in screen./path/to/Canopy/pythonor/path/to/Canopy/python script.pybut I see you found this solution :). Maybe somewhere in screen configuration (or Bash configuration.bashrc) you could setalias python=/path/to/Canopy/pythonor something similar.