Unable to import pandas and numpy after conda update scipy

Hi all,

After hitting the command ‘conda update scipy’, I was unable to import pandas and numpy. I followed the full uninstallation guide from the official website ,
(1) anaconda-clean --yes
(2) deleted environment (anaconda3\envs ) and package (anaconda3\pkgs ) folders
(3) uninstall your Anaconda installation

I have installed the latest windows ‘Anaconda3-2023.03-Windows-x86_64’ and reinstall it using default settings.

However I kept seeing this error message when i try to import pandas

import pandas as pd

ImportError Traceback (most recent call last)
Cell In[1], line 1
----> 1 import pandas as pd

File ~\anaconda3\lib\site-packages\pandas_init_.py:16
13 _missing_dependencies.append(f"{_dependency}: {_e}")
15 if _missing_dependencies:
—> 16 raise ImportError(
17 “Unable to import required dependencies:\n” + “\n”.join(_missing_dependencies)
18 )
19 del _hard_dependencies, _dependency, _missing_dependencies
21 # numpy compat

ImportError: Unable to import required dependencies:
numpy: cannot import name randbits

when i try to import numpy, i get the following error:

ImportError Traceback (most recent call last)
Cell In[2], line 1
----> 1 import numpy

File ~\anaconda3\lib\site-packages\numpy_init_.py:151
149 from . import fft
150 from . import polynomial
→ 151 from . import random
152 from . import ctypeslib
153 from . import ma

File ~\anaconda3\lib\site-packages\numpy\random_init_.py:180
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 ~\anaconda3\lib\site-packages\numpy\random_pickle.py:1
----> 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

I have tried whole day trying to search and troubleshoot but unable to solve it… any help is much appreciated!!

thank you!

I managed to get numpy and pandas up after uninstalling, purging the old configuration files (Menu shortcuts etc…) and reinstalling anaconda.
Thanks everyone!