我使用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之一。
我确实相信这是两个版本共存的相关,但我该如何解决这个问题?