1
我試圖安裝SBT2並具有以下設置Sublimetext2安裝10.7.4
OS
的Mac OS X 10.7
tbc:~ mystic$ which python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
tbc:~ mystic$ python -V
Python 2.7.2
我下載的DMG從SBT2網站安裝並安裝,但在打開SBT2應用程序後出現錯誤
Unable to run package setup:
Failed to load module
Traceback (most recent call last):
File "./PackageSetup.py", line 7, in <module>
import zipfile
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/zipfile.py", line 4, in <module>
import struct, os, time, sys, shutil
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/struct.py", line 1, in <module>
from _struct import *
ImportError: No module named _struct
更重要的是我想根據sublimetext2論壇幫助
tbc:~ mystic$ ls -la /Library/Frameworks/Python.framework/Versions
total 8
drwxr-xr-x 5 root admin 170 Jun 12 2011 .
drwxr-xr-x 6 root admin 204 Jun 12 2011 ..
drwxrwxr-x 11 root admin 374 Jun 12 2011 2.7
drwxrwxr-x 10 root admin 340 Jun 9 2011 3.0
lrwxr-xr-x 1 root admin 3 Sep 25 2011 Current -> 2.7
tbc:~ mystic$ cd /Library/Frameworks/Python.framework/Versions
tbc:Versions mystic$ sudo rm Current
Password:
tbc:Versions mystic$ sudo ln -s /Library/Frameworks/Python.framework/Versions/2.7 Current
正如我有Python2.7作爲其默認的我不知道爲什麼SBT2會後python2.6的
它不應該是這個我知道這很複雜,但是沒有想法讓它工作。
任何幫助和建議表示讚賞!
讓我們看看這是否適合我!感謝您的更新! – thchand
運氣好嗎?任何問題,讓我知道。 – chenyi1976
ln -s 2.7 2.6權限被拒絕 – thchand