Getting FileNotFoundError: [WinError 2] The system cannot find the file specified

Hi All,

On my windows 11 I am getting FileNotFoundError: [WinError 2] while running the script. Using python 3.11.0 verion. Could someone please help.

Are you using an absolute or relative path?

1 Like

It is relative path, thanks.

1 Like

Make sure you are in the current directory that allows you to use the relative path.

You can print the current working directory as a debug aid to check ot is what you expect.

import os
print(os.getcwd())

Please do mot post screen shots of text.

Copy the text and paste as as preformatted text using the `</>’ button.