我是靠谱客的博主 冷酷白开水,最近开发中收集的这篇文章主要介绍AttributeError: module ‘numpy.random‘ has no attribute ‘default_rng‘,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
AttributeError: module 'numpy.random' has no attribute 'default_rng'
>>> import numpy
>>> numpy.__version__
'1.16.4'
>>>
解决:
$ pip install --upgrade numpy
Requirement already satisfied: numpy in /....../python3.6/site-packages (1.16.4)
Collecting numpy
Downloading numpy-1.19.5-cp36-cp36m-manylinux2010_x86_64.whl (14.8 MB)
最后
以上就是冷酷白开水为你收集整理的AttributeError: module ‘numpy.random‘ has no attribute ‘default_rng‘的全部内容,希望文章能够帮你解决AttributeError: module ‘numpy.random‘ has no attribute ‘default_rng‘所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复