rk3399 安装numpy报错-RuntimeError: Running cythonize failed

在RK3399设备上使用python安装numpy时遇到RuntimeError,错误信息显示cythonize失败。问题根源是缺少cython库,通过安装cython可以解决此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在运行如下安装命令时:

pip3 install numpy

报错:

 RuntimeError: Running cythonize failed!

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-        build-j1mbj8zb/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=        f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))"         install --record /tmp/pip-26dm0w_y-record/install-record.txt --single-version-ex        ternally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pi        p-build-j1mbj8zb/numpy/

解决方案:

1)网上的帖子第一个解决方案:(我没试)

sudo su
your password
pip install statsmodels

 2)本人经过仔细阅读错误提醒,发现是缺少cython这个库才报错,安装即可:

pip3 install cython

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

一颗温暖的心_lucky

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值