Attributeerror: Module 'Numpy. Linalg. _Umath_Linalg' Has No Attribute '_Ilp64'
Running This Code Block on Google Colab. "Import Nltk" Is Causing the Issue. Error Statement: /Usr/Local/Lib/Python3.10/Dist-Packages/Numpy/Testing/_Private/Uti...
Running this code block on google colab. "import nltk" is causing the issue.
Error Statement:
/usr/local/lib/python3.10/dist-packages/numpy/testing/_private/utils.py in <module>
55 IS_PYSTON = hasattr(sys, "pyston_version_info")
56 HAS_REFCOUNT = getattr(sys, 'getrefcount', None) is not None and not IS_PYSTON
---> 57 HAS_LAPACK64 = numpy.linalg._umath_linalg._ilp64
58
59 _OLD_PROMOTION = lambda: np._get_promotion_state() == 'legacy'
**AttributeError: module 'numpy.linalg._umath_linalg' has no attribute '_ilp64'**
import sys
import numpy as np
#!pip uninstall -y numpy
#!pip install numpy
!pip install setuptools
import pandas as pd
import matplotlib.pyplot as plt
import warnings
import csv
import urllib.parse as parse
import pickle
!pip uninstall -y nltk
!pip install nltk
import nltk
nltk.download('punkt')
from nltk.tokenize import word_tokenize
from urllib.parse import unquote
How to rectify the same?
I tried uninstalling and reinstalling both numpy and nltk. I also tried to upgrade them but the same error persists.