How to build pysparse on Ubuntu

一个人想着一个人 提交于 2019-12-12 09:41:57

问题


When I try to install pysparse via pip install pysparse==1.3-dev, the build fails with the error:

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

These kinds of errors are usually the result of some missing system dev package, but googling doesn't show anything for "spmatrix". I tried installing the python-sparse package, which does provide this file, but I still get the same error.

How do I fix this?


回答1:


In this dev-1.3 pakage there were no ".h" and ".c" files if you go through their source. Use pip install pysparse==1.2-dev213 or lower versions or pip install csc-pysparse



来源:https://stackoverflow.com/questions/25459011/how-to-build-pysparse-on-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!