gpt4 book ai didi

python - 在Python中使用scipy错误中的stats包?

转载 作者:行者123 更新时间:2023-12-01 06:16:22 24 4
gpt4 key购买 nike

我尝试在 Python 中使用 scipy stats 包,但收到以下错误(在 Mac OS X 上):

$ python
Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> from scipy import stats

然后我收到错误:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy-0.9.0.dev-py2.6-macosx-10.6-universal.egg/scipy/stats/__init__.py", line 7, in <module>
from stats import *
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy-0.9.0.dev-py2.6-macosx-10.6-universal.egg/scipy/stats/stats.py", line 202, in <module>
import scipy.special as special
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy-0.9.0.dev-py2.6-macosx-10.6-universal.egg/scipy/special/__init__.py", line 8, in <module>
from basic import *
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy-0.9.0.dev-py2.6-macosx-10.6-universal.egg/scipy/special/basic.py", line 6, in <module>
from _cephes import *
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy-0.9.0.dev-py2.6-macosx-10.6-universal.egg/scipy/special/_cephes.so, 2): Symbol not found: _aswfa_
Referenced from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy-0.9.0.dev-py2.6-macosx-10.6-universal.egg/scipy/special/_cephes.so
Expected in: flat namespace
in /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy-0.9.0.dev-py2.6-macosx-10.6-universal.egg/scipy/special/_cephes.so

知道这里会发生什么吗?

谢谢。

最佳答案

该消息表示 0.9.0-dev scipyspecial/_cephes.so 运行时库中缺少 aswfa(角球面波函数?)。(它存在于 0.7.2 中,nm -gpvspecial/_cephes.so | egrep aswfa。我没试过0.8.0rc1 .)

最好等待专家修复它。并且一定要按照 John Salvatier 的建议询问 scipy-user 或 scipy-dev。

关于python - 在Python中使用scipy错误中的stats包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3172431/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com