2012-10-16 119 views
1

我正在嘗試爲IDLE安裝IdleX擴展。我是否運行從命令行python idlex.py或Python中啓動安裝程序,我得到了同樣的錯誤:安裝IDLE擴展時出錯IdleX-1.11.1

$ cd '/Volumes/Pig/Users/arrow/Downloads/idlex-1.11.1/' && 
'/usr/local/bin/pythonw' 
'/Volumes/Pig/Users/arrow/Downloads/idlex-1.11.1/idlex.py' && 
echo Exit status: $? && exit 1 

Oct 15 20:00:29 Niflheimr.local Python[45309] <Error>: 
kCGErrorInvalidConnection: CGSGetWindowTags: Invalid connection 

Oct 15 20:00:29 Niflheimr.local Python[45309] <Error>: 
kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() 
to catch errors as they are logged. 

我在Mac OS上運行了Python 2.6包的Mac 10.7.5

回答

0

我假設你已經從idlex網站下載了zip。要安裝該擴展,你需要將它解壓縮並運行

python setup.py install 

,你將有可能遇到類似的視覺

python setup.py install 
running install 
running build 
running build_py 
creating build 
creating build/lib.linux-x86_64-2.7 
creating build/lib.linux-x86_64-2.7/idlexlib 
copying idlexlib/__init__.py -> build/lib.linux-x86_64-2.7/idlexlib 
copying idlexlib/launch.py -> build/lib.linux-x86_64-2.7/idlexlib 
copying idlexlib/extensionManager.py -> build/lib.linux-x86_64-2.7/idlexlib 

可能的錯誤:

error: could not create '/usr/local/lib/python2.7/dist-packages/idlexlib': Permission denied 

如果有權限被拒絕錯誤:在命令中使用root權限

Cheers