我已经得到了Python代码,其前言中包含了下面这行:
from numpy import array,arccosh,random_integers在后面的代码中,我(成功地)使用了array和arccosh。然而,当程序运行时,我得到了一个错误:
from numpy import array,arccosh,random_integers
ImportError: cannot import name random_integers有人能帮上忙吗?谢谢。
发布于 2012-06-23 06:12:29
我没有使用NumPy的经验,但在谷歌上快速搜索一下,我发现random_ingegers实际上是在numpy.random中。所以,也许是from numpy.random import random_integers?
https://stackoverflow.com/questions/11155223
复制相似问题