AI软件下载
有趣网站推荐及实用软件下载

All ufuncs must have type numpy.ufunc. Received (, , )

python应用报错:RuntimeError: Failed to import diffusers.pipelines.flux.pipeline_flux_kontext because of the following error (look up to see its traceback): Failed to import transformers.models.clip.modeling_clip because of the following error (look up to see its traceback): Failed to import transformers.generation.utils because of the following error (look up to see its traceback): All ufuncs must have type `numpy.ufunc`. Received (<ufunc ‘sph_legendre_p’>, <ufunc ‘sph_legendre_p’>, <ufunc ‘sph_legendre_p’>)

这是numpy和 scipy版本不兼容导致的,重新安装以下版本解决了问题

pip install numpy==1.26.1 scipy==1.11.2

副业收入超主业,热门变现项目:点击查看>>

软件催更及1对1人工答疑支持: https://nuowa.net/1806
赞(0) 打赏
软件无法使用?点击查看常见问题说明>>

最近更新

UV包管理器用法基础教程

UV是一个用 Rust 编写的高性能工具,旨在替代 Python 传统的包管理工具链,速度比 pip 和 Conda 快数十甚至上百倍。 安装 uv 你可以通过一条命令安装 uv: 安装后,...

觉得文章对你有帮助就打赏一下作者

非常感谢你的打赏,我将有更多的动力继续提供优质内容,让我们一起创建更加美好的世界!

支付宝扫一扫

微信扫一扫