installing
pysparse
对于Python版本2.7.15:
$ pyenv local 2.7.15
$ pip install pysparse==1.2-dev213
我试图测试安装,如图所示
派斯派尔
home page
testSuperlu.py
,我得到以下错误:
Traceback (most recent call last):
File "testSuperlu.py", line 3, in <module>
from pysparse.tools import poisson
File "/home/hakon/.pyenv/versions/2.7.15/lib/python2.7/site-packages/pysparse/__init__.py", line 6, in <module>
from numpy._import_tools import PackageLoader
ImportError: No module named _import_tools
numpy._import_tools
他失踪了。我正在使用
numpy
:
pyparse
和
:
$ pip install pysparse==1.1.1-dev
$ pip install numpy==1.15.1
然后运行测试程序
testSuperlu.py
再一次:
$ python testSuperlu.py
ImportError: No module named _multiarray_umath
Traceback (most recent call last):
File "testSuperlu.py", line 3, in <module>
from pysparse.tools import poisson
File "/home/hakon/.pyenv/versions/2.7.15/lib/python2.7/site-packages/pysparse/__init__.py", line 9, in <module>
from sparse import spmatrix
File "/home/hakon/.pyenv/versions/2.7.15/lib/python2.7/site-packages/pysparse/sparse/__init__.py", line 6, in <module>
from pysparseMatrix import *
File "/home/hakon/.pyenv/versions/2.7.15/lib/python2.7/site-packages/pysparse/sparse/pysparseMatrix.py", line 57, in <module>
from pysparse.sparse import spmatrix
ImportError: numpy.core.multiarray failed to import