当前位置:   article > 正文

cannot import name ‘bool‘ from ‘numpy‘_importerror: cannot import name 'bool' from 'numpy

importerror: cannot import name 'bool' from 'numpy
from numpy import bool, int, float, complex, object, unicode, str, nan, inf
ImportError: cannot import name 'bool' from 'numpy' (D:\anaconda\envs\hybrik_py38_pytorch3d\lib\site-packages\numpy\__init__.py)
  • 1
  • 2

numpy版本太高,从1.24.2降到1.23.0即可

pip install numpy==1.23 -i https://mirrors.aliyun.com/pypi/simple
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/657796
推荐阅读
相关标签
  

闽ICP备14008679号