I have two directories at the same level. For example Folder A and Folder B. Folder A uses python3.7 and Folder B has an Anaconda environment which uses python2.7. I run os.system("python ../folder b/ex2.py")
.
In folder B the Anaconda environment is activated.
The problem is when I run the python script from Terminal python ../folder b/ex2.py
it runs successfully but when I call the script from folder A it doesn't use the Anaconda environment.