Dealing with Multiple Python Versions— do not run independently

后端 未结 5 1311
无人共我
无人共我 2021-01-14 03:09

I have Python 2.7 (my preferred version) and 3.3 (version used in my Programming class) installed on my computer (OS: Windows 7). Until a certain point, they worked fine ind

5条回答
  •  一整个雨季
    2021-01-14 03:47

    You can launch with a specific version of python from the command line by using 'py' followed by a version flag (i.e. -2 or -3)

    Here is an example of what you could do:

    Python 2

    >>> py -2 your_script.py
    

    OR

    Python 3

    >>> py -3 your_script.py
    

提交回复
热议问题