ImportError: Numba needs NumPy 1.21 or less

➜  ~ python
Python 3.8.10 (default, Nov 26 2021, 20:14:08) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numba
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "~/.local/lib/python3.8/site-packages/numba/__init__.py", line 200, in <module>
    _ensure_critical_deps()
  File "~/.local/lib/python3.8/site-packages/numba/__init__.py", line 140, in _ensure_critical_deps
    raise ImportError("Numba needs NumPy 1.21 or less")
ImportError: Numba needs NumPy 1.21 or less

and, my numpy:

➜  ~ pip show numpy
Name: numpy
Version: 1.22.2
Summary: NumPy is the fundamental package for array computing with Python.
Home-page: https://www.numpy.org
Author: Travis E. Oliphant et al.
Author-email: 
License: BSD
Location: ~/.local/lib/python3.8/site-packages
Requires: 
Required-by: albumentations, altair, arviz, astropy, blis, bokeh, Bottleneck, bqplot, Cartopy, catboost, cftime, cirq-core, cmaes, cmdstanpy, cupy-cuda115, dabl, deepsphere, dython, echo, edward, eli5, fast-histogram, feyn, flatcam, folium, fvcore, geemap, glue-core, glue-vispy-viewers, gradio, gwyfile, gym, h5py, healpy, holoviews, httpstan, hvplot, ImageHash, imageio, imbalanced-learn, imgaug, imgviz, ipydatawidgets, ipyvolume, isosurfaces, jax, kaldi-io, Keras-Preprocessing, koila, label-studio, librosa, lie-learn, lightgbm, lpips, m2cgen, manim, manimgl, mapbox-earcut, matplotlib, matrixprofile, missingno, mmcv, mmdet, moderngl-window, modin, monai, motmetrics, moviepy, mpl-scatter-density, netCDF4, neuralprophet, nibabel, numba, numdifftools, onnx, onnx-graphsurgeon, onnx-tensorrt, onnxruntime, open3d, openfermion, opt-einsum, optuna, ortools, pandas, pandas-profiling, patsy, phik, pixloc, prophet, pyarrow, pycocotools, pycroscopy, pydeck, pyerfa, PyGSP, pymc3, pyquaternion, pyquil, pyrr, pystan, pythreejs, pytools, pytorch-lightning, PyTurboJPEG, pyUSID, PyWavelets, qiskit-aer, qiskit-ibmq-provider, qiskit-ignis, qiskit-terra, qudida, rasterio, resampy, retworkx, sankee, scikit-image, scikit-learn, scikit-surprise, scipy, seaborn, sidpy, sklearn-contrib-lightning, sktime, snuggs, spacy, spektral, statsmodels, streamlit, stumpy, sweetviz, tensorboard, tensorboardX, tensorflow, tf2onnx, Theano-PyMC, thinc, tifffile, torch-lr-finder, torchmetrics, torchtext, torchvision, transformers, trimesh, tsfresh, tslearn, uff, visions, vispy, wordcloud, wxPython, xarray, xgboost, yfinance

By downgrading numpy, this issue is solved. However …

This error is correct. Numpy 1.22 isn’t supported at present and there is a ticket here: NumPy 1.22 support · Issue #7754 · numba/numba · GitHub