我使用OSX 10.9 + Kivy 1.9.1,但我有兩個版本的Python,Mac OSX自包含2.7.5和另一個獨立版本2.7.9安裝。下面是詳細信息:ImportError:Twisted需要zope.interface 3.6.0或更高版本:實際上已經安裝
MacBook-Air:wzy$ python
Python 2.7.5 (default, Mar 9 2014, 22:15:05) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin Type "help", "copyright", "credits" or "license" for more information.
MacBook-Air:wzy$ python
Python 2.7.9 (v2.7.9:648dcafa7e5f, Dec 10 2014, 10:10:46) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information.
具有pip install twisted
裝扭曲後,我得到了在kivy與Python 2.7.5,這並不在Python 2.7出現以下錯誤消息。 9
MacBook-Air:wzy$ kivy
>>> import twisted
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/twisted/__init__.py", line 53, in <module> _checkRequirements() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/twisted/__init__.py", line 37, in _checkRequirements raise ImportError(required + ": no module named zope.interface.") ImportError: Twisted requires zope.interface 3.6.0 or later: no module named zope.interface.
MacBook-Air:wzy$ python
>>> import twisted
>>> exit()
我甚至幾次安裝了zope.interface,並將安裝目標目錄專用爲kivy環境的sys.path之一。
我確實相信這是兩個版本共存的相關,但我該如何解決這個問題?