问题二:pip install python-igraph 报错,C core of igraph 没有安装。
(一)问题描述
Centos7 安装python-igraph时,pip install python-igraph 报错,C core of igraph 没有安装。
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try. Cannot find the C core of igraph on this system using pkg-config. We will now try to download and compile the C core from scratch. Version number of the C core: 0.7.1.post6 We will also try: 0.7.1 Version 0.7.1.post6 of the C core of igraph is not found among the nightly builds. Use the --c-core-version switch to try a different version. Could not download and compile the C core of igraph.
(二)解决办法
网上的方法都试过,搞了好几天,焦头烂额,也没有整出来。最后看了源码。才知道它安装的时候,会下载igraph。也就是C core。具体解决方法:
1. 下载:igraph-0.7.1.tar
2. 解压:tar -zxvf igraph-0.7.1.tar.gz
3.安装:
./configure make make install
4. 在安装pip install python-igraph,命令如下:
pip install -v python-igraph --install-option="--c-core-url=【igraph路径】/igraph-0.7.1.tar.gz" pip install -v python-igraph --install-option="--c-core-url=http://127.0.0.1/imagedeps/igraph-0.7.1.tar.gz"
不要小瞧女程序员
标签:
运维
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· winform 绘制太阳,地球,月球 运作规律
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· AI 智能体引爆开源社区「GitHub 热点速览」
· Manus的开源复刻OpenManus初探
· 写一个简单的SQL生成工具