Scipy installed but still shows import scipy

Hello I have Scipy installed (it was not there initally i installed it) and it still shows import scipy error.

I am using a tf.keras model with an image generator

error - ImportError: Image transformations require SciPy. Install SciPy.

I am able to import scipy no problem, i am using a free tier GPU machine

Request help.

Similar problem but no response there either-

Hi there, you may try installing Scipy. To do so, open a Terminal within the notebook follow these steps:

  • Run apt-get update then apt-get upgrade
  • Then apt-get install python-scipy
  • Last, within the notebook run !pip install scipy
  • Stop the notebook kernel and try again.

If these work, please let us know.

2 Likes