Installing Tensorflow, NumPy and Pandas on the same machine

Viewed 490

If I try and install TensorFlow on my machine, it'll install numpy 1.19.5

If I try and install Pandas, it'll install numpy 1.22

If I stick with numpy 1.19.5 and try to import pandas, I get a complaint from pandas:

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

If I go with numpy 1.22, I get

NotImplementedError: Cannot convert a symbolic Tensor (lstm_2/strided_slice:0) to a numpy array

Which I've heard means it's because tensorflow can't run on 1.22

So what am I supposed to do to have pandas and tensorflow working at the same time?

1 Answers

You can use Pandas version==1.3.5 which supports all later versions of Tensorflow 2.6 to 2.9 and Numpy version >= 1.17.3

Related