First time I got this error trying to install Python on some friend's computer (Windows7 - x64)
It says
C:\Users\Username\Desktop\proyect> myproyect.py
File "myproyect.py" line 1
ActivePython 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32
▲
SyntaxError: invalid syntax
The file contains more than just python code, hence the syntax error.
Please check that file simply contains
print "hello world"
And not
ActivePython 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32
# some other stuff...
print "hello world"