我在MacOSX 10.8.5上使用Python 2.7。我通过ScipySuperpack-10.8_final安装了Scipy(0.14.0.dev-dc14aee)。现在我试图导入" Scipy.special"但我失败了。
import numpy as np
import scipy
from scipy import special
然后,
ImportError
Traceback (most recent call last) <ipython-input-1-f54905432611> in <module>()
1 import numpy as np
2 import scipy
----> 3 from scipy import special
/Library/Python/2.7/site-packages/scipy-0.14.0.dev_dc14aee-py2.7-macosx-10.9-intel.egg/scipy/special/__init__.py in <module>()
530 from __future__ import division, print_function, absolute_import
531
--> 532 from ._ufuncs import *
533
534 from .basic import *
ImportError: dlopen(/Library/Python/2.7/site-packages/scipy-0.14.0.dev_dc14aee-py2.7-macosx-10.9-intel.egg/scipy/special/_ufuncs.so, 2): Symbol not found: ___sincos_stret
Referenced from: /Library/Python/2.7/site-packages/scipy-0.14.0.dev_dc14aee-py2.7-macosx-10.9-intel.egg/scipy/special/_ufuncs.so
Expected in: /usr/lib/libSystem.B.dylib
in /Library/Python/2.7/site-packages/scipy-0.14.0.dev_dc14aee-py2.7-macosx-10.9-intel.egg/scipy/special/_ufuncs.so
我检查了the another post与&#34相关的X代码版本;未找到符号:___ sincos_stret&#34;。确切地说,我的Xcode是5.1.1并且已经安装了命令行工具。但我找不到旧Xcode的链接进行更换。
$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
我也尝试通过pip安装scipy。它有很多安装问题,所以我避免使用&#34; pip install scipy&#34;。
我该如何解决这个问题?