在mac os X 10.10.2上安装pyo

时间:2015-03-30 13:54:54

标签: python-2.7 osx-yosemite pyo

我最近按照本指南安装了pyo:DownloadingCompiling。然后我在python上尝试了import pyo但是这个出现了

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import pyo
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyo.py", line 21, in <module>
    import pyolib.analysis as analysis
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyolib/analysis.py", line 30, in <module>
    from _core import *
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyolib/_core.py", line 32, in <module>
    from _pyo import *
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pyo.so, 2): Symbol not found: _Pm_Close
  Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pyo.so
  Expected in: dynamic lookup

我该怎么办?我是初学者,如果你需要其他信息,请告诉我。

1 个答案:

答案 0 :(得分:0)

找到解决方案:使用安装程序,没有别的。不过,我不知道为什么它不起作用。