Python Forum
running python in cmd on win10
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
running python in cmd on win10
#2
(May-17-2020, 08:46 PM)rny1python Wrote: when i type python desktop\intro.py i get a syntax message [i tried every variation i could think:
- c:\users\ron\desktop> python intro.py invalid syntax
- c:\>python> c:\users\ron\desktop\intro.py invalid syntax
Look at this.
You are in interact shell(>>>) when run python desktop\intro.py this need to be done from cmd.
Make sure that python and pip work from command line(cmd) as shown in link over,before doing anything else

For running code in IDLE,so not using >>> that it start up in bye default.
To get started is PyScripter very easy to use.
After while look into VS Code from start.
Reply


Messages In This Thread
running python in cmd on win10 - by rny1python - May-17-2020, 08:46 PM
RE: running python in cmd on win10 - by snippsat - May-17-2020, 10:37 PM
RE: running python in cmd on win10 - by rny1python - May-18-2020, 03:30 AM
RE: running python in cmd on win10 - by snippsat - May-18-2020, 09:11 AM
RE: running python in cmd on win10 - by deanhystad - May-18-2020, 12:45 PM
RE: running python in cmd on win10 - by rny1python - May-18-2020, 02:40 PM
RE: running python in cmd on win10 - by deanhystad - May-18-2020, 11:36 PM

Forum Jump:

User Panel Messages

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