how do I launch IDLE, the development environment

2019-01-31 00:20发布

I am running python 2.7.1. I can't figure out how to launch the IDLE IDE. I am told it comes already installed with python, but I can't find it using spotlight.

9条回答
ゆ 、 Hurt°
2楼-- · 2019-01-31 00:34

In the stock Mac OS X python installation, idle is found in /usr/bin, which is not (easily) accessible from Finder and not indexed by Spotlight. The quickest option is to open the Terminal utility and type 'idle' at the prompt. For a more Mac-like way of opening it, you'll have to create a small app or shortcut to launch /usr/bin/idle for you (an exercise left to the reader).

查看更多
Evening l夕情丶
3楼-- · 2019-01-31 00:37
  1. After you launch idle from the command line (make sure idle shell window has focus), click File, click "New File". A new window opens; this is your editor.

  2. Type your program in the editor. Click "File", click "Save As...". Save your file somewhere with any name you choose, and a ".py" extension to the file name.

  3. Click "Run", click "Run Module" (or, F5). Assuming no errors, the results will appear in the Shell window. Edit your file & repeat as necessary.

查看更多
放我归山
4楼-- · 2019-01-31 00:39

When you open up a new terminal window, just type in

idle


Enter command in terminal

Then you will see a little rocket icon show up as IDLE loads

rocket

Then the Python shell opens up for you to edit

Python Shell

查看更多
老娘就宠你
5楼-- · 2019-01-31 00:45

As to the earlier questions about starting IDLE: you can certainly start it from the command line. Also, if you installed Python using Homebrew, you can run 'brew linkapps' (from the command line); that will place an app for IDLE (among other things) in Launchpad (Applications folder).

查看更多
走好不送
6楼-- · 2019-01-31 00:46

so for python 3.4.3 in applications a folder named "python 3.4" click that and click IDLE.

for python 2.7.9 go here https://www.python.org/downloads/ and get 2.7.9 and a folder named "python 2.7" click that and click IDLE.

查看更多
Summer. ? 凉城
7楼-- · 2019-01-31 00:47

I think the shell command is

 python -m idlelib.idle 

but i am not a mac user so i can't test.

查看更多
登录 后发表回答