AttributeError: module numpy.random has no attribute bit_generator 解决办法

运行代码前加上这两句即可。

import numpy
numpy.random.bit_generator = numpy.random._bit_generator

你可能感兴趣的:(AttributeError: module numpy.random has no attribute bit_generator 解决办法)