How to build pysparse on Ubuntu

When I try to install pysparse via the pip install pysparse==1.3-dev

build fails:

pysparse/sparse/src/spmatrixmodule.c:4:22: fatal error: spmatrix.h: No such file or directory

      

These errors are usually due to a missing system dev package, but googling doesn't show anything for "spmatrix". I tried to install the package python-sparse

that provides this file, but I still get the same error.

How to fix it?

+3


source to share


1 answer


There were no ".h" and ".c" files in this dev-1.3 pakage if you are going through their source. Use pip install pysparse==1.2-dev213

either lower versions orpip install csc-pysparse



+4


source







All Articles