Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经在 Mac 上安装了 scipy。它可以很好地导入,但缺少一些库。当我尝试加载诊断时,它会引发错误:
from scipy.sparse import diags Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name diags
我拥有的 scipy 版本是 0.10.1。我该如何升级这个?
scipy您可以使用以下方式升级pip:
scipy
pip
pip install scipy --upgrade