'Which TensorFlow version is compatible with NumPy version==1.18?

I need to use the librosa and tensorflow packages for a Neural Network audio classification project.

librosa has a dependency on the numba package, which requires numpy version==1.18.

But, tensorflow requires numpy version==1.2.

Can I install both versions of numpy simultaneously? If not, which version should I downgrade tensorflow to, for achieving compatibility with numpy version==1.18?



Solution 1:[1]

You can install TensorFlow 2.7 which supports numpy>=1.14.5 and is compatible with the latest versions of librosa.

!pip install tensorflow==2.7

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 TFer2