The first cell of my jupyter notebook contains the libraries I want to import. For some reason when I run it receive the ImportError: cannot import name randbits
. I have never seen this import error before and have already tried restarting the kernel and confirmed that all libraries were installed correctly. As anyone seen this before and know what to do about this error?
import numpy as np
import pandas as pd
import requests
import xlsxwriter
import math
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Input In [1], in <cell line: 1>()
----> 1 import numpy as np
2 import pandas as pd
3 import requests
File C:\pyver\py3.10.5\lib\site-packages\numpy\__init__.py:151, in <module>
149 from . import fft
150 from . import polynomial
--> 151 from . import random
152 from . import ctypeslib
153 from . import ma
File C:\pyver\py3.10.5\lib\site-packages\numpy\random\__init__.py:180, in <module>
126 __all__ = [
127 'beta',
128 'binomial',
(...)
176 'zipf',
177 ]
179 # add these for module-freeze analysis (like PyInstaller)
--> 180 from . import _pickle
181 from . import _common
182 from . import _bounded_integers
File C:\pyver\py3.10.5\lib\site-packages\numpy\random\_pickle.py:1, in <module>
----> 1 from .mtrand import RandomState
2 from ._philox import Philox
3 from ._pcg64 import PCG64, PCG64DXSM
File mtrand.pyx:1, in init numpy.random.mtrand()
File bit_generator.pyx:38, in init numpy.random.bit_generator()
ImportError: cannot import name randbits