What version of Python are you using? Have you tried an
apt-get -y update yum -y update Sincerely, Chad Perry cperry...@hotmail.com 512.961.0291 From: Alan Gauld<mailto:alan.ga...@btinternet.com> Sent: Saturday, February 20, 2016 6:32 PM To: tutor@python.org<mailto:tutor@python.org> Subject: Re: [Tutor] How to run a python script On 20/02/16 16:25, Erol Gericke wrote: > However I am unable to run any scripts. > > When I type (into the COMMAND PROMPT window) python test.py or > python C:\python27\test.py I get SyntaxError: invalid syntax As Chris has hinted it sounds like you are running the script at the wrong command prompt. In general the Python prompt >>> is used to enter code snippets directly. The OS command prompt (C:\Windows> or similar) is used to run Python script files. To get an OS command prompt hit WindowsKey->Run and type CMD and click OK. (You can also create a desktop shortcut if you prefer.) Also, for future reference it will help if you send (cut n paste) the full error message not just a summary. It contains a lot of useful data that helps pinpoint the issue, once you learn to read it. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor