Loading

【编程】numpy版本不匹配问题

问题描述

运行qwen1.5 7b autogptq的项目时,出现了这样的提示:

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.2.6 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

并且最后出现这样的报错而停止:
Numpy is not available

解决

一开始试着安装了numpy2.0,结果还是不行
后面安装了更旧的版本成功解决
参考:https://blog.csdn.net/m0_46330177/article/details/140501823
pip install numpy==1.22.4

posted @ 2026-01-06 21:56  SaTsuki26681534  阅读(12)  评论(0)    收藏  举报