1

uploading image in DJANGO web app hosted in azure is not working it is showing me an error

error cannot import name _imaging

but it works fine in local machine. I tried installing different version of pillow but it still displaying the error

i have a model in django that accepts text and image i am actually trying this from django admin and also it works fine locally i dont know what happed when i ship the code it displays the above error.i think the problem is with the azure

Joy Wang
  • 39,905
  • 3
  • 30
  • 54
Robel
  • 37
  • 8

2 Answers2

1

Please see my previous case : install odbc driver to azure app service to install pillow package in your azure django app.

enter image description here

In addition , as @Andrey said you could check if PIL and Pillow both installed in your django app via KUDU. Please refer to this case :ImportError: cannot import name _imaging.

Hope it helps you.

Jay Gong
  • 23,163
  • 2
  • 27
  • 32
0

On Windows install pillow from .exe package

miksyn
  • 93
  • 7