I have both Python 3.3 and Python 2.7 installed on my computer. The python 3.3 works fine, but when I try to run something using python 2.7, it is still referencing python 3.3.
For Example: if I type F:Python33python33.exe test1.py
, it will run with 3.3 and work fine, but if I type F:Python27python27.exe test1.py
it gives this error:
File "F:PYTHON33LIBsite.py", line 173
file=sys.stderr)
^
SyntaxError: invalid syntax
Note: I have renamed the Python 2.7 and 3.3 .exe's to python27.exe and python33.exe respectively.
Any help would be appreciated, Thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…