Could not import PIL.Image. The use of `array_to_img` requires PIL

Python version :3.6
Jetson Nano Jetpack version: 4.4
Tensor flow version: tensorflow==1.15.2+nv20.6
Keras: 2.0.5

While executing an application, i got following exception


After that, I installed pillow-7.2.0. But i am getting same error message ImportError: Could not import PIL.Image. The use of array_to_img requires PIL.

Could you please help me to resolve the issue?


We can import PLI.Image without issue on the JetPack4.4.
Would you mind to try it again?

$ sudo apt-get install python3-pip
$ sudo pip3 install -U pip
$ sudo pip3 install pillow

Our version is v6.2.2.