Refer Auto Start Python Script on Boot.
If you are running Anaconda for current user, but not for root.
You can find the python interpreter path using which python or python -c "import sys; print(sys.executable)"
which pythonsudo which pythonEdit the bash script to use the correct python interpreter
/opt/conda/bin/python3 /code/python/myapp/run.py >> /code/logs/myapp.log 2>&1