Atom not running my program

#1

Hello i am trying to run any Atom program but here is the following error it is showing me.

the error codes are :

Windows PowerShell
Copyright © Microsoft Corporation. All rights reserved.

PS C:\Users\user\Downloads\courses\free\python mega course\notes> .\program.py
Program ‘program.py’ failed to run: Application not foundAt line:1 char:1

  • .\program.py

At line:1 char:1

  • .\program.py
  •   + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
      + FullyQualifiedErrorId : NativeCommandFailed
    
    

PS C:\Users\user\Downloads\courses\free\python mega course\not

could you please help me how to fix it

#3

The problem is that you’re trying to run it like an application when it’s a text file. You need to run the python command, as in python .\program.py.

#4

Thanks very much si i appreciate it

1 Like