Windows环境下允许同时安装Python2.x与Python3.x

Python2.x与Python3.x同时安装时,切换使用方法

一、在命令提示符下使用python2.x或者python3.x可以使用如下方法:

1、找到python的安装目录

2、重命名应用程序文件(.exe文件)

3、为了方便区分,python2.x和python3.x的应用程序文件分别命名为python2和python3

Python2.x与Python3.x同时安装时,切换使用方法Python2.x与Python3.x同时安装时,切换使用方法

4、在命令提示符下输入python2

Python2.x与Python3.x同时安装时,切换使用方法

5、在命令提示符下输入python3

Python2.x与Python3.x同时安装时,切换使用方法

 

二、在pycharm下实现python2.x与python3.x的切换

1、在创建工程的时候选择python的执行版本

Python2.x与Python3.x同时安装时,切换使用方法

2、在File  >  Setting  >  Project  下进行设置

Python2.x与Python3.x同时安装时,切换使用方法

 

相关文章:

  • 2022-12-23
  • 2021-05-10
  • 2021-06-30
  • 2021-09-25
  • 2021-12-05
  • 2021-12-18
  • 2021-08-12
  • 2021-09-06
猜你喜欢
  • 2022-12-23
  • 2021-04-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2021-11-19
相关资源
相似解决方案