Python IDLE:更改Python版本 [英] Python IDLE: Change Python Version

查看:961
本文介绍了Python IDLE:更改Python版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的机器上安装了Python 2.x和3.x(Mac OS X 10.6). 对于某些事情,我想使用版本2,但对于另一些事情,我想要版本3.我喜欢IDLE软件来进行编辑/运行,但它始终使用版本3.

I have Python 2.x and 3.x on my machine (Mac OS X 10.6). For some things I want to use ver 2, but for others I want ver 3. I like the IDLE software for editing/running, but it always uses version 3.

是否可以更改IDLE使用的解释器的版本?

谢谢!

推荐答案

每个Python版本都安装了不同版本的IDLE.根据在Mac OS X上安装Python的方式,您可能在/Applications中找到不同的文件夹.查找其中具有IDLE的Python 3.n(n = 1或2)文件夹.或者,从终端命令行中,您可能会找到idle2.6idle3idle3.1idle3.2.

There are different versions of IDLE installed for each Python version. Depending on how you installed Python on Mac OS X, you may find different folders in /Applications. Look for a Python 3.n (n = 1 or 2) folder with an IDLE in it. Or, from a terminal command line, you may find an idle2.6 and an idle3 or idle3.1 or idle3.2.

这篇关于Python IDLE:更改Python版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆