subprocess.call() gives “The system cannot find the path specified.” while the file exists and can run that truly
问题 why running import subprocess # I'm going to run another python script in anaconda script like this: #subprocess.call("C:\\ProgramData\\Anaconda3\\Scripts\\activate.bat && python C:\test.py") # but for simplifying the sample for here I've deleted the second part # (in the case you didn't install python in the default path, you can replace v_activate_address with the correct address on your computer to see the result) v_activate_address = "C:\\ProgramData\\Anaconda3\\Scripts\\activate.bat"