user123
user123

Reputation: 11

Python Errno 2 with Windows 10

I am trying to run a basic hello world python program with python 2.7.5 in PowerShell (Windows 10). I created the file helloworld.py and can see the file in my current directory - however, when I try to run that file in the current directory, I get an errno 2 message that the file cannot be found:

screenshot of PowerShell

My path values appear to be set correctly for both user and system variables - I have no issue launching python in PowerShell:

screenshot of path values

I have also confirmed that python is the default open with program for .py files and that the file is not hidden and not read only.

Any idea what might be causing this error?

Upvotes: 0

Views: 623

Answers (1)

user123
user123

Reputation: 11

I ended up copying my file and underlying folder structure from the original Windows\System32 location to a new folder in C: and now it's working.

Upvotes: 1

Related Questions