Python2和Python3共存安装

时间:2017-08-22 01:15:57   收藏:0   阅读:297

记录下:

先下载Python2.7.6,安装完成,不要添加到path中;

再下载Python3.4.3,安装,不要添加到path中。

进入 Python2:

  py -2

进入Python3:

  py -3

 


若需要安装Python2的库,执行py -2 -m pip install xxxx即可,xxxx是库的名字。
若需要安装Python3的库,执行py -3 -m pip install xxxx即可。

 

https://python.freelycode.com/contribution/detail/139

https://segmentfault.com/a/1190000005068355

 

原文:http://www.cnblogs.com/hanggegege/p/7407314.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!