1.IDLE
这个就很简单了直接搜索程序运行就是。

2.命令行
命令行有个很简单的方法直接python -2 运行python2.x版本python -3运行python3.x版本。

3.命令pip
当需要python2的pip时,只需 py -2 -m pip install xxx
当需要python3的pip时,只需 py -3 -m pip install xxx
这个就很简单了直接搜索程序运行就是。
命令行有个很简单的方法直接python -2 运行python2.x版本python -3运行python3.x版本。
当需要python2的pip时,只需 py -2 -m pip install xxx
当需要python3的pip时,只需 py -3 -m pip install xxx
本文标题:电脑中同时存在python3与python2如何切换
本文链接:https://www.haomeiwen.com/subject/gemydftx.html
网友评论