gpt4 book ai didi

找不到 Python linalg 包?

转载 作者:太空宇宙 更新时间:2023-11-04 06:44:05 24 4
gpt4 key购买 nike

我是 python 安装的新手,在尝试读取包时遇到了以下问题。

:> python interptime.py
Traceback (most recent call last):
File "interptime.py", line 3, in <module>
from scipy import interpolate
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/scipy/interpolate/__init__.py", line 154, in <module>
from rbf import Rbf
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/scipy/interpolate/rbf.py", line 49, in <module>
from scipy import linalg
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/scipy/linalg/__init__.py", line 133, in <module>
from basic import *
File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/scipy/linalg/basic.py", line 14, in <module>
from scipy.linalg import calc_lwork
ImportError: dlopen(/usr/local/scisoft/packages/python/lib/python2.7/site-packages/scipy/linalg/calc_lwork.so, 2): Symbol not found: _ilaenv_
Referenced from: /usr/local/scisoft/packages/python/lib/python2.7/site-packages/scipy/linalg/calc_lwork.so
Expected in: /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate

这是 interptime.py 脚本的开头:

import numpy as np
import matplotlib.pyplot as plt
from scipy import interpolate
...

我如何告诉 python 去哪里寻找 scipy/linalg 包?

最佳答案

Python 在 PYTHON_PATH 环境变量中查找已安装的包。但我不确定这是否是你的问题。错误消息表明共享对象版本存在问题...我建议您在控制台上使用 pip install 命令安装所需的一切...

关于找不到 Python linalg 包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22200718/

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