Last answered:

20 Nov 2022

Posted on:

07 Nov 2021

1

Unable to import the generator and PCG64 from the numpy.random package?






---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-80-e22079a8792a> in <module>
----> 1 from numpy.random import Generator as gen
      2 from numpy.random import PCG64 as pcg
      3 
      4 
      5 ## We load two functions from the numpy.random module.

ImportError: cannot import name 'Generator' from 'numpy.random' (C:\Users\User\Anaconda3\lib\site-packages\numpy\random\__init__.py)
1 answers ( 0 marked as helpful)
Posted on:

20 Nov 2022

0

same problem here

Submit an answer