I'm trying to leave a script running on an EC2 instance after I close the SSH client. The script is running on an activated tensorflow_p36 virtual anaconda environment.
I have tried to use screen and tmux but to no avail ( I issue these commands when the venv is active). I get a ModuleNotFoundError: No module named 'tensorflow' even though when I try conda env list I see that I'm using the tensorflow_p36 environment.
Do you have any ideas?
Have you tried using nohup {your command} &? 
This has previously worked for me.
Leave a tensorflow (anaconda venv) script running on EC2 instance