之前用过Windows中的Python的IDLE,功能有些简陋,但是算是对于初学者有点点用吧。
现在电脑换成Mac了,也用过更好用的PyCharm,VSCode+Python等工具了。
不过突然想去试试,Mac中的Python的IDLE了,看看是什么样子,效果如何。
mac python idle
都没说,Mac中如何启动Python的IDLE
截图了:
但是我这里找不到:
Installers are available for the latest Python 3 and Python 2 releases that will work on all Macs that run Mac OS X 10.5 and later. Python releases include IDLE, Python's built-in interactive development environment. If you download and install Python from the release page, you may also need to download and install a newer version of Tcl/Tk for. Info: I have Python 2.7.1:86832 (32-bit) installed using ActiveState Tcl/Tk 8.5.9 on Mac OS X 10.6 Problem: Whenever I try to run (from the IDLE) a Python script using the turtle module, the window that shows up will draw anything passed to it, but it will not come to the front using the listen function, nor will clicking on the window do.
去命令行看看,是有的:
➜ backup_restore which idle
/usr/bin/idle
➜ backup_restore which idle2.7
/usr/bin/idle2.7
➜ backup_restore which idle3
/usr/local/bin/idle3
➜ backup_restore which idle3.6
Idle Python Gui
/usr/local/bin/idle3.6
去启动IDLE看看效果:
然后可以看到:
主要就是:
python的shell的彩色版本。
当然也还是有些IDE才具有的其他工具的,比如:
不过还是很难用。
算了,不继续试了。
最后,强制退出IDLE时,终端出现了错误
➜ backup_restore idle
*** Internal Error: rpc.py:SocketIO.localcall()
Object: gui_adapter
Method: >
Args: (‘:1: ()', 4397130240, None)
Traceback (most recent call last):
File '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/rpc.py', line 188, in localcall
ret = method(*args, **kwargs)
File '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/RemoteDebugger.py', line 284, in interaction
self.gui.interaction(message, frame, modified_info)
File '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/Debugger.py', line 197, in interaction
Idle Ide Download
然后可以看到:
主要就是:
python的shell的彩色版本。
当然也还是有些IDE才具有的其他工具的,比如:
不过还是很难用。
算了,不继续试了。
最后,强制退出IDLE时,终端出现了错误
➜ backup_restore idle
*** Internal Error: rpc.py:SocketIO.localcall()
Object: gui_adapter
Method: >
Args: (‘:1: ()', 4397130240, None)
Traceback (most recent call last):
File '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/rpc.py', line 188, in localcall
ret = method(*args, **kwargs)
File '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/RemoteDebugger.py', line 284, in interaction
self.gui.interaction(message, frame, modified_info)
File '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/Debugger.py', line 197, in interaction
Idle Ide Download
b.configure(state='disabled')
File '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py', line 1326, in configure
return self._configure(‘configure', cnf, kw)
Idle For Python Machine Learning
File '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py', line 1317, in _configure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
TclError: invalid command name '.4576786048.4576788064.4576787920'
[1] 52979 terminated idle
Python Ide For Mac Os
忽略之。
Python On Mac
转载请注明:在路上 » 【记录】试试Mac中Python自带的IDE工具IDLE的效果