解决报错:To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0
2026/7/24 10:09:32 网站建设 项目流程
  • 解决报错: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’.
  • 安装新版本的NumPy:
pip install numpy==1.26.4

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询