I am using Google Colab and trying to use PyLDAvis to visualize a topic modelling model made from gensim. The python code was working fine but has suddenly started to give me the error:
ImportError: cannot import name '_NUMEXPR_INSTALLED' from 'pandas.core.computation.check' (/usr/local/lib/python3.7/dist-packages/pandas/core/computation/check.py)
The error comes from the line from pandas.core.computation.check import NUMEXPR_INSTALLED in the file /usr/local/lib/python3.7/dist-packages/pandas/core/computation/eval.py. I believe this line is being called by pyLDAvis.gensim_models.prepare.
I tried putting !pip install numexpr but it doesn't get rid of the error. What is surprising is that when I call !pip install numexpr, the output is:
Requirement already satisfied: numexpr in /usr/local/lib/python3.7/dist-packages (2.7.3)
Requirement already satisfied: numpy>=1.7 in /usr/local/lib/python3.7/dist-packages (from numexpr) (1.20.2)
which means that numexpr can be found in /usr/local/lib/python3.7/dist-packages
NUMEXPR_INSTALLED, but not_NUMEXPR_INSTALLED. Can you double-check your "eval.py" and "check.py" and make sure they match?!pip install --upgrade pandas.!cat /usr/local/lib/python3.7/dist-packages/pandas/core/computation/check.pywill print the contents ofcheck.py.