Home > Enterprise >  python script not running due to Errno2 No such file or directory exist
python script not running due to Errno2 No such file or directory exist

Time:04-19

Hi I get this when running python script(prepoc.py). Could it be an issue with the environment variables? enter image description here

Any idea how to fix this? Thanks

CodePudding user response:

Please open the path program and see your program is there. This error means your program is not there.

CodePudding user response:

First of all, check if the prepoc.py is in your folder directory. If it already is, you have to check your current working directory by

import os
print(os.getcwd())

if prepoc.py isn't in the current working directory, place it there.

  • Related