Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
run .py file on Windows
#2
Quote:
C:\Users\username > python hello.py
This is the correct method. You should either get an error message or the script hello.py runs.

adding to the PATH should fix this; but you can try troubleshooting by putting the file hello.py in the directory C:\Users\username\AppData\Local\Programs\Python\Python36-32

I havent used Windows in an eternity so i forgot how they do it.
Recommended Tutorials:
Reply


Messages In This Thread
run .py file on Windows - by aidanikuz - Sep-14-2017, 01:17 PM
RE: Can't run .py file - Windows 8.1 - by metulburr - Sep-14-2017, 02:23 PM
RE: Can't run .py file - Windows 8.1 - by snippsat - Sep-14-2017, 02:30 PM
RE: Can't run .py file - Windows 8.1 - by aidanikuz - Sep-19-2017, 02:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  batch file for running python scipt in Windows shell MaartenRo 2 2,095 Jan-21-2022, 02:36 PM
Last Post: MaartenRo
  Using a .bat file to execute simple anaconda commands in Windows 10 gacg1 0 4,856 Nov-30-2020, 03:24 PM
Last Post: gacg1
  opening a file from a windows desktop folder- error opening file Charan007 1 3,071 Dec-06-2018, 11:50 AM
Last Post: buran
  python 2.7 access denied when writing a file to Windows kavise 2 11,485 Feb-13-2018, 08:30 PM
Last Post: kavise
  Python 3.x Windows 7 registry file associations broken pixhellmann 2 5,205 Sep-12-2017, 09:14 PM
Last Post: Larz60+
  File access confusion python windows PickyBiker 0 3,451 May-08-2017, 05:36 PM
Last Post: PickyBiker
  Get File Ownership under Windows newatpython 6 16,683 Mar-24-2017, 01:18 PM
Last Post: sparkz_alot
  Windows: Put File automatically under Cursor for Drag & Drop sym 1 3,597 Jan-13-2017, 04:55 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020