按照http://sfepy.org/doc-devel/installation.html#installing-sfepy 中的指示,我使用以下命令将 SfePy 安装到我的 Python 2.7 anaconda
conda install -c conda-forge sfepy
在那之后,我不能再导入 numpy
>>> import numpy as np
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/david/anaconda2/lib/python2.7/site-packages/numpy/__init__.py", line 142, in <module>
from . import core
File "/Users/david/anaconda2/lib/python2.7/site-packages/numpy/core/__init__.py", line 91, in <module>
raise ImportError(msg.format(path))
ImportError: Something is wrong with the numpy installation. While importing we
detected an older version of numpy in ['/Users/david/anaconda2/lib/python2.7/site-packages/numpy']. One method of fixing this is to repeatedly uninstall numpy until …Run Code Online (Sandbox Code Playgroud)