如何在Ubuntu上构建pysparse [英] How to build pysparse on Ubuntu

查看:58
本文介绍了如何在Ubuntu上构建pysparse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试通过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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆