如何在Ubuntu上构建pysparse [英] How to build pysparse on Ubuntu
问题描述
当我尝试通过pip install pysparse==1.3-dev
安装pysparse时,构建失败并显示以下错误:
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
这些错误通常是由于缺少一些系统开发包而导致的,但是对于"spmatrix",谷歌搜索不会显示任何内容.我尝试安装确实提供此文件的python-sparse
软件包,但仍然出现相同的错误.
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.
我该如何解决?
推荐答案
在此dev-1.3包装中,如果您查看源代码,则没有".h"和".c"文件.
使用pip install pysparse==1.2-dev213
或更低版本或pip install csc-pysparse
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
这篇关于如何在Ubuntu上构建pysparse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!