Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm trying to execute a python script using tSystem. I use an anaconda virtual environment for python, so I have all modules installed in that environment. How can I use this environment to execute the script?
I tried to activate the environment by adding
conda activate myenv
in the shell script for linux (under Project Settings), but it didn't work.
I used the absolute path to specify which python to use and it worked.
/home/siva227/anaconda3/envs/py3/bin/python myscript.py
I used the absolute path to specify which python to use and it worked.
/home/siva227/anaconda3/envs/py3/bin/python myscript.py