I have folder with file master.py, which runs digit_span.py from subfolder digit_span.
When I use Spyder, everything works fine. But when I try to run master.py with system Python, I got the error “ModuleNotFoundError: No module named ‘psychopy’”. Curiosly if I call digit_span.py directly via console with system Python, it runs perfectly. I installed psychopy to my system Python, as well as to conda new environment. So I think that the problem hides somewhere in my master.py.
if __name__ == "__main__": import os import subprocess cDir = os.path.dirname(os.path.realpath(__file__)) + "/digit_span" subprocess.call(["python", "digit_span.py"], cwd=cDir)
I need to call script via console because I won’t be able to install Anaconda to experimental laptop.
System: macOS Catalina v. 10.15.7
Spyder 3.3.6 Python 3.6.13 64-bit | Qt 5.12.9 | PyQt5 5.12.3 | Darwin 19.6.0
System Python 3.8
I would very appreciate any help!