Python2和Python3共存安装

记录下:

先下载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

 

posted @ 2017-08-21 23:32  航飞冲天  阅读(320)  评论(0编辑  收藏  举报