How to switch between python 2.7 to python 3 from command line?

后端 未结 6 2004
无人及你
无人及你 2020-12-04 06:43

I\'m trying to find the best way to switch between the two python compilers, 2.7 to 3.3. I ran the python script from the cmd like this:

python

6条回答
  •  醉话见心
    2020-12-04 06:46

    They are 3 ways you can achieve this using the py command (py-launcher) in python 3, virtual environment or configuring your default python system path. For illustration purpose, you may see tutorial https://www.youtube.com/watch?v=ynDlb0n27cw&t=38s

提交回复
热议问题