之前用过Windows中的Python的IDLE,功能有些简陋,但是算是对于初学者有点点用吧。
现在电脑换成Mac了,也用过更好用的PyCharm,VSCode+Python等工具了。
You find IDLE in the Python 3.3 folder on your system as IDLE (Python GUI). When you click or double-click this entry (depending on your platform), you see the IDLE editor. The two lines of text contain information about the Python host and provide suggestions on the commands you can try. The precise information you see differs by platform. How to import Modules to IDLE on MAC. Locate the system path. Enter “ import sys; sys.executable ” into your IDLE shell. #Copy the below import sys; sys.executable. This will give. Open Terminal and Enter. Test if working. Jan 29, 2019 How to install Python on MacOS Step by Step for Beginners Today we will learn: 1. Check if Python is already installed 2. Download Python 3. Install Python 4. Validate if Python is installed.
不过突然想去试试,Mac中的Python的IDLE了,看看是什么样子,效果如何。
mac python idle
都没说,Mac中如何启动Python的IDLE
截图了:
但是我这里找不到:
去命令行看看,是有的:
➜ 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
/usr/local/bin/idle3.6
去启动IDLE看看效果:
然后可以看到:
主要就是:
python的shell的彩色版本。
当然也还是有些IDE才具有的其他工具的,比如:
不过还是很难用。
算了,不继续试了。
Idle Download
最后,强制退出IDLE时,终端出现了错误
➜ backup_restore idle
*** Internal Error: rpc.py:SocketIO.localcall()
Object: gui_adapter
Method: <bound method GUIAdapter.interaction of <idlelib.RemoteDebugger.GUIAdapter instance at 0x110cc3d88>>
Args: (‘<pyshell#4>:1: <module>()’, 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
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)
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
Idle Python 3.7
忽略之。
How To Pandas For Idle Python Mac Os Access Denied
转载请注明:在路上 » 【记录】试试Mac中Python自带的IDE工具IDLE的效果