Using multiple versions of Python

前端 未结 7 663
温柔的废话
温柔的废话 2020-12-06 10:25

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

7条回答
  •  广开言路
    2020-12-06 10:39

    You will get issue if multipler version of python is set

    File "F:\PYTHON33\LIB\site.py", line 173 file=sys.stderr) ^ SyntaxError: invalid syntax

    To fix this issue remove previous version python set in system environment variable

提交回复
热议问题