首页 > 编程语言 > 详细

Python18_Windows下切换py2和py3

时间:2021-06-13 09:49:25      阅读:13      评论:0      收藏:0      [点我收藏+]

参考链接:https://blog.csdn.net/df0128/article/details/82758554

 

如果在windows上同时安装了python2和python3,

如果想指定使用python2还是python3;可以使用如下方法:
使用python2:py -2
使用python3:py -3


如果在此情况下还要使用pip:
使用python2:py -2 -m pip install xxxxx
使用python3:py -3 -m pip install xxxxx

Python18_Windows下切换py2和py3

原文:https://www.cnblogs.com/grooovvve/p/14879471.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!