You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

无法安装cypari2包求助:编译提示缺少/usr/share/pari/pari.desc文件

解决cypari2安装失败问题

问题概述

执行pip install cypari2时触发报错,核心错误为:

error: [Errno 2] No such file or directory: '/usr/share/pari/pari.desc'

已尝试以下操作但未解决:

  • pip install cypari2
  • pip install Cython
  • pip install --upgrade pip

解决方案

cypari2是PARI数学库的Python绑定,编译时依赖系统级的PARI开发文件,缺失pari.desc说明未安装对应开发包,需先安装系统依赖:

Debian/Ubuntu 系列

apt-get update && apt-get install -y libpari-dev

安装完成后重新执行:

pip install cypari2

RHEL/CentOS/Fedora 系列

# CentOS/RHEL
yum install -y pari-devel
# Fedora
dnf install -y pari-devel

之后再次运行pip install cypari2。

macOS(使用Homebrew)

brew install pari

完成后重新安装cypari2即可。

内容的提问来源于stack exchange,提问作者Tikkirey

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.28 15:06:00