当前位置:   article > 正文

Numpy版本查看、降级、卸载和安装(自定义版本)_if you are a user of the module, the easiest solut

if you are a user of the module, the easiest solution will be to downgrade t

碰到的问题如下所示:

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 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的版本:
pip show numpy
1、卸载Numpy:
pip uninstall numpy
2、查看可以安装的Numpy版本:
pip index versions numpy
3、选择一个你想要的版本安装:
  1. pip install -U numpy==1.9.0
  2. # 1.9.0是自定的版本号
安装过程中 可能出现的问题

error: subprocess-exited-with-error

可以尝试检查网络问题(有没有使用魔法)

或者 更新setuptool

pip install --upgrade setuptools
4、这里也可以直接跳过步骤2,3直接尝试
pip install -U numpy<2

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/904937
推荐阅读
相关标签
  

闽ICP备14008679号