Microsoft Azure Django Python Setup Error Pillow
Solution 1:
It seems that you were using Azure Web Apps/App Services for deploying your Django App which contains the Pillow
package, and the Pillow
package seems that you declared in the requirements.txt
like Pillow>=2.0.0
.
However, unfortunately, there are two issues for using the Pillow
package on Azure App Services.
Pillow includes C code which need to be compiled when deploying your app into Azure. The solution is that you need to build a wheel file of Pillow to add it to your project and declare the wheel file in the
requirements.txt
, please refer to the section Troubleshooting - Package Installation of Azure offical tutorial for Django to know it.Pillow as an image library for Python required GDI API & resources. On Azure App Services, any GDI calls are restricted and blocked, please see here to know.
So the only way for deploying your Django App is using Azure VM.
Solution 2:
Your pip is too old to download the whl (known issues with default version of Python). Please update your Python installation or update pip directly: https://blogs.msdn.microsoft.com/pythonengineering/2016/08/04/upgrading-python-on-azure-app-service/
Post a Comment for "Microsoft Azure Django Python Setup Error Pillow"