Microsoft Azure Django Python安装错误枕头 [英] Microsoft Azure Django Python setup error Pillow
问题描述
所有排序都是使用Microsoft Azure的新功能,需要在其上部署Django应用程序的帮助.当我将代码从本地存储库推送到Azure时,它将获得此日志.
All sorta new to using Microsoft Azure and needed help deploying a Django App to it. When I push the code from my local repo to Azure it gives me this log.
我注意到它说:
找不到zlib的头文件或库文件,这是必需的
从源编译枕头时的依赖关系.请参阅安装
中的说明
https://pillow.readthedocs.io/en/latest/installation.html
I noticed it says :
The headers or library files could not be found for zlib, a required
dependency when compiling Pillow from source. Please see the install
instructions at
https://pillow.readthedocs.io/en/latest/installation.html
我做了更多阅读,并了解到Azure无法从环境中安装PIL或Pillow,因此需要将其安装在我的系统上,然后再上传到Azure.我包含了一个名为".skipPythonDeployment"的文件,以便它不会擦除在本地系统上设置的环境,但随后部署将再次失败.
I did more reading and learnt that Azure cannot install PIL or Pillow from the environment and hence needs to be installed on my system and then uploaded to Azure. I included a file called ".skipPythonDeployment" so that it doesn't erase the environment set on my local system, but then the deployment would fail again.
将代码推送到Azure时生成的日志的重要部分如下所示.
The important part of the Log generated while Pushing the code to Azure is attached below.
检测到的requirements.txt.您可以使用跳过Python特定步骤 .skipPythonDeployment文件.从站点检测Python运行时 配置检测到python-2.7删除不兼容的虚拟 环境. ................................................... ..........创建 python-2.7虚拟环境.
Detected requirements.txt. You can skip Python specific steps with a .skipPythonDeployment file. Detecting Python runtime from site configuration Detected python-2.7 Deleting incompatible virtual environment. ............................................................ Creating python-2.7 virtual environment.
下载/打开枕头(来自-r requirements.txt(第4行))
....运行setup.py
(路径:D:\ home \ site \ wwwroot \ env \ build \ pillow \ setup.py)egg_info用于
包枕
Windows的单线程构建
警告:找不到与" .sh"匹配的文件
找不到与"docs_static"匹配的先前包含的目录
警告:找不到与".coveragerc"匹配的先前包含的文件
警告:找不到与".editorconfig"匹配的先前包含的文件
警告:找不到与".landscape.yaml"匹配的先前包含的文件
警告:找不到与".travis"匹配的先前包含的文件
警告:找不到与".travis *"匹配的先前包含的文件
警告:找不到与"appveyor.yml"匹配的先前包含的文件
警告:找不到与"build_children.sh"匹配的先前包含的文件
警告:找不到与"tox.ini"匹配的先前包含的文件
警告:分发中的任何位置都找不到与".git "匹配的先前包含的文件
警告:在分发中的任何位置都找不到与" .pyc"匹配的先前包含的文件
警告:分发中的任何位置都找不到与" .so"匹配的先前包含的文件
警告:找不到与" .sh"匹配的文件
找不到与"docs_static"匹配的先前包含的目录
警告:找不到与".coveragerc"匹配的先前包含的文件
警告:找不到与".editorconfig"匹配的先前包含的文件
警告:找不到与".landscape.yaml"匹配的先前包含的文件
警告:找不到与".travis"匹配的先前包含的文件
警告:找不到与".travis *"匹配的先前包含的文件
警告:找不到与"appveyor.yml"匹配的先前包含的文件
警告:找不到与"build_children.sh"匹配的先前包含的文件
警告:找不到与"tox.ini"匹配的先前包含的文件
警告:分发中的任何位置都找不到与".git "匹配的先前包含的文件
警告:在分发中的任何位置都找不到与" .pyc"匹配的先前包含的文件
警告:在发行版中的任何位置都找不到与' .so'匹配的先前包含的文件下载/解压缩Werkzeug(来自-r
requirements.txt(第5行))下载/解压缩flask-cors(从-r
requirements.txt(第6行))下载
Flask_Cors-3.0.2-py2.py3-none-any.whl下载/解压缩
烧瓶> = 0.8(来自flask-restful->-r requirements.txt(第1行))
下载/解压pytz(从flask-restful->-r requirements.txt
(第1行))下载/解压缩六个> = 1.3.0(从flask-restful->-r
requirements.txt(第1行))下载
六-1.10.0-py2.py3-none-any.whl下载/解压缩aniso8601> = 0.82
(来自flask-restful->-r requirements.txt(第1行))运行setup.py
(路径:D:\ home \ site \ wwwroot \ env \ build \ aniso8601 \ setup.py)egg_info用于
软件包aniso8601
下载/解压缩olefile(从枕头->-r requirements.txt(第4行))运行setup.py
(路径:D:\ home \ site \ wwwroot \ env \ build \ olefile \ setup.py)egg_info用于
包olefile
下载/解压缩它的危险> = 0.21(从Flask> = 0.8-> flask-restful->-r requirements.txt(第1行))运行
setup.py(路径:D:\ home \ site \ wwwroot \ env \ build \ itsdangerous \ setup.py)
egg_info用于包装itsdangerous
警告:在目录"docs_build"下未找到与""相匹配的先前包含的文件下载/解压缩Jinja2> = 2.4(来自
Flask> = 0.8-> flask-restful->-r requirements.txt(第1行))
下载/解压click> = 2.0(从Flask> = 0.8-> flask-restful->-r
requirements.txt(第1行))下载/解包python-dateutil
(来自aniso8601> = 0.82-> flask-restful->-r requirements.txt(第1行))
下载/解压缩MarkupSafe> = 0.23(来自
Jinja2> = 2.4-> Flask> = 0.8-> flask-restful->-r requirements.txt(第1行))
下载MarkupSafe-1.0.tar.gz运行setup.py
(路径:D:\ home \ site \ wwwroot \ env \ build \ MarkupSafe \ setup.py)egg_info用于
打包MarkupSafe
安装收集的软件包:烧瓶烧瓶,numpy,pydicom,枕头,Werkzeug,烧瓶芯,烧瓶,pytz,六个,aniso8601,olefile,
危险,Jinja2,单击,python-dateutil,MarkupSafe
..................:..................运行setup.py install
对于pydicom.
..运行setup.py安装枕头
Windows的单线程构建
警告:找不到与" .sh"匹配的文件
找不到与"docs_static"匹配的先前包含的目录
警告:找不到与".coveragerc"匹配的先前包含的文件
警告:找不到与".editorconfig"匹配的先前包含的文件
警告:找不到与".landscape.yaml"匹配的先前包含的文件
警告:找不到与".travis"匹配的先前包含的文件
警告:找不到与".travis *"匹配的先前包含的文件
警告:找不到与"appveyor.yml"匹配的先前包含的文件
警告:找不到与"build_children.sh"匹配的先前包含的文件
警告:找不到与"tox.ini"匹配的先前包含的文件
警告:分发中的任何位置都找不到与".git *"匹配的先前包含的文件
警告:在分发中的任何位置都找不到与" .pyc"匹配的先前包含的文件
警告:分发中的任何位置都找不到与" .so"匹配的先前包含的文件
找不到zlib的标头或库文件,
从源编译Pillow时需要的依赖项.
请在以下位置查看安装说明:
https://pillow.readthedocs.io/en/latest/installation.html
Downloading/unpacking pillow (from -r requirements.txt (line 4))
.... Running setup.py
(path:D:\home\site\wwwroot\env\build\pillow\setup.py) egg_info for
package pillow
Single threaded build for windows
warning: no files found matching '.sh'
no previously-included directories found matching 'docs_static'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.landscape.yaml'
warning: no previously-included files found matching '.travis'
warning: no previously-included files found matching '.travis*'
warning: no previously-included files found matching 'appveyor.yml'
warning: no previously-included files found matching 'build_children.sh'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files matching '.git' found anywhere in distribution
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
warning: no files found matching '.sh'
no previously-included directories found matching 'docs_static'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.landscape.yaml'
warning: no previously-included files found matching '.travis'
warning: no previously-included files found matching '.travis*'
warning: no previously-included files found matching 'appveyor.yml'
warning: no previously-included files found matching 'build_children.sh'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files matching '.git' found anywhere in distribution
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution Downloading/unpacking Werkzeug (from -r
requirements.txt (line 5)) Downloading/unpacking flask-cors (from -r
requirements.txt (line 6)) Downloading
Flask_Cors-3.0.2-py2.py3-none-any.whl Downloading/unpacking
Flask>=0.8 (from flask-restful->-r requirements.txt (line 1))
Downloading/unpacking pytz (from flask-restful->-r requirements.txt
(line 1)) Downloading/unpacking six>=1.3.0 (from flask-restful->-r
requirements.txt (line 1)) Downloading
six-1.10.0-py2.py3-none-any.whl Downloading/unpacking aniso8601>=0.82
(from flask-restful->-r requirements.txt (line 1)) Running setup.py
(path:D:\home\site\wwwroot\env\build\aniso8601\setup.py) egg_info for
package aniso8601
Downloading/unpacking olefile (from pillow->-r requirements.txt (line 4)) Running setup.py
(path:D:\home\site\wwwroot\env\build\olefile\setup.py) egg_info for
package olefile
Downloading/unpacking itsdangerous>=0.21 (from Flask>=0.8->flask-restful->-r requirements.txt (line 1)) Running
setup.py (path:D:\home\site\wwwroot\env\build\itsdangerous\setup.py)
egg_info for package itsdangerous
warning: no previously-included files matching '' found under directory 'docs_build' Downloading/unpacking Jinja2>=2.4 (from
Flask>=0.8->flask-restful->-r requirements.txt (line 1))
Downloading/unpacking click>=2.0 (from Flask>=0.8->flask-restful->-r
requirements.txt (line 1)) Downloading/unpacking python-dateutil
(from aniso8601>=0.82->flask-restful->-r requirements.txt (line 1))
Downloading/unpacking MarkupSafe>=0.23 (from
Jinja2>=2.4->Flask>=0.8->flask-restful->-r requirements.txt (line 1))
Downloading MarkupSafe-1.0.tar.gz Running setup.py
(path:D:\home\site\wwwroot\env\build\MarkupSafe\setup.py) egg_info for
package MarkupSafe
Installing collected packages: flask-restful, numpy, pydicom, pillow, Werkzeug, flask-cors, Flask, pytz, six, aniso8601, olefile,
itsdangerous, Jinja2, click, python-dateutil, MarkupSafe
.................. : .................. Running setup.py install
for pydicom .
.. Running setup.py install for pillow
Single threaded build for windows
warning: no files found matching '.sh'
no previously-included directories found matching 'docs_static'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.landscape.yaml'
warning: no previously-included files found matching '.travis'
warning: no previously-included files found matching '.travis*'
warning: no previously-included files found matching 'appveyor.yml'
warning: no previously-included files found matching 'build_children.sh'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\home\site\wwwroot\env\build\pillow\setup.py", line 756, in <module>
raise RequiredDependencyException(msg)
__main__.RequiredDependencyException:
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
Complete output from command D:\home\site\wwwroot\env\Scripts\python.exe -c "import setuptools,
tokenize; 文件 ='D:\ home \ site \ wwwroot \ env \ build \ pillow \ setup.py'; exec(compile(getattr(tokenize,
'打开',打开)(文件).read().replace('\ r \ n','\ n'),文件,
'exec'))安装--record
d:\ local \ temp \ pip-nu1mtm-record \ install-record.txt
--single-version-外部管理-编译--install-headers D:\ home \ site \ wwwroot \ env \ include \ site \ python2.7:
Windows的单线程构建运行安装运行构建运行build_py创建build创建
build \ lib.win32-2.7创建build \ lib.win32-2.7 \ PIL复制
PIL \ BdfFontFile.py-> build \ lib.win32-2.7 \ PIL复制
PIL \ BmpImagePlugin.py-> build \ lib.win32-2.7 \ PIL复制
PIL \ BufrStubImagePlugin.py-> build \ lib.win32-2.7 \ PIL复制
PIL \ ContainerIO.py-> build \ lib.win32-2.7 \ PIL复制
PIL \ CurImagePlugin.py-> build \ lib.win32-2.7 \ PIL复制
PIL \ DcxImagePlugin.py-> build \ lib.win32-2.7 \ PIL复制
PIL \ DdsImagePlugin.py-> build \ lib.win32-2.7 \ PIL复制
PIL \ EpsImagePlugin.py-> build \ lib.win32-2.7 \ PIL复制
PIL \ ExifTags.py-> build \ lib.win32-2.7 \ PIL复制PIL \ features.py
-> build \ lib.win32-2.7 \ PIL复制PIL \ FitsStubImagePlugin.py-> build \ lib.win32-2.7 \ PIL复制PIL \ FliImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ FontFile.py->
build \ lib.win32-2.7 \ PIL复制PIL \ FpxImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ FtexImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ GbrImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ GdImageFile.py->
build \ lib.win32-2.7 \ PIL复制PIL \ GifImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ GimpGradientFile.py->
build \ lib.win32-2.7 \ PIL复制PIL \ GimpPaletteFile.py->
build \ lib.win32-2.7 \ PIL复制PIL \ GribStubImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ Hdf5StubImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ IcnsImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ IcoImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ Image.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageChops.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageCms.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageColor.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageDraw.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageDraw2.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageEnhance.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageFile.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageFilter.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageFont.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageGrab.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageMath.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageMode.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageMorph.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageOps.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImagePalette.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImagePath.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageQt.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageSequence.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageShow.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageStat.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageTk.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageTransform.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImageWin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ ImtImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ IptcImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ Jpeg2KImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ JpegImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ JpegPresets.py->
build \ lib.win32-2.7 \ PIL复制PIL \ McIdasImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ MicImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ MpegImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ MpoImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ MspImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ OleFileIO.py->
build \ lib.win32-2.7 \ PIL复制PIL \ PaletteFile.py->
build \ lib.win32-2.7 \ PIL复制PIL \ PalmImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ PcdImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ PcfFontFile.py->
build \ lib.win32-2.7 \ PIL复制PIL \ PcxImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ PdfImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ PixarImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ PngImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ PpmImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ PsdImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ PSDraw.py->
build \ lib.win32-2.7 \ PIL复制PIL \ PyAccess.py->
build \ lib.win32-2.7 \ PIL复制PIL \ SgiImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ SpiderImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ SunImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ TarIO.py->
build \ lib.win32-2.7 \ PIL复制PIL \ TgaImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ TiffImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ TiffTags.py->
build \ lib.win32-2.7 \ PIL复制PIL \ WalImageFile.py->
build \ lib.win32-2.7 \ PIL复制PIL \ WebPImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ WmfImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ XbmImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ XpmImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL \ XVThumbImagePlugin.py->
build \ lib.win32-2.7 \ PIL复制PIL_binary.py->
build \ lib.win32-2.7 \ PIL复制PIL_tkinter_finder.py->
build \ lib.win32-2.7 \ PIL复制PIL_util.py->
build \ lib.win32-2.7 \ PIL复制PIL__init__.py->
运行egg_info的build \ lib.win32-2.7 \ PIL将要求写入
Pillow.egg-info \ requires.txt编写Pillow.egg-info \ PKG-INFO
将顶级名称写入Pillow.egg-info \ top_level.txt中
对Pillow.egg-info \ dependency_links.txt警告的dependency_links警告:
manifest_maker:找不到标准文件'-c'
tokenize;file='D:\home\site\wwwroot\env\build\pillow\setup.py';exec(compile(getattr(tokenize,
'open', open)(file).read().replace('\r\n', '\n'), file,
'exec'))" install --record
d:\local\temp\pip-nu1mtm-record\install-record.txt
--single-version-externally-managed --compile --install-headers D:\home\site\wwwroot\env\include\site\python2.7:
Single threaded build for windows running install running build running build_py creating build creating
build\lib.win32-2.7 creating build\lib.win32-2.7\PIL copying
PIL\BdfFontFile.py -> build\lib.win32-2.7\PIL copying
PIL\BmpImagePlugin.py -> build\lib.win32-2.7\PIL copying
PIL\BufrStubImagePlugin.py -> build\lib.win32-2.7\PIL copying
PIL\ContainerIO.py -> build\lib.win32-2.7\PIL copying
PIL\CurImagePlugin.py -> build\lib.win32-2.7\PIL copying
PIL\DcxImagePlugin.py -> build\lib.win32-2.7\PIL copying
PIL\DdsImagePlugin.py -> build\lib.win32-2.7\PIL copying
PIL\EpsImagePlugin.py -> build\lib.win32-2.7\PIL copying
PIL\ExifTags.py -> build\lib.win32-2.7\PIL copying PIL\features.py
-> build\lib.win32-2.7\PIL copying PIL\FitsStubImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\FliImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\FontFile.py ->
build\lib.win32-2.7\PIL copying PIL\FpxImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\FtexImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\GbrImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\GdImageFile.py ->
build\lib.win32-2.7\PIL copying PIL\GifImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\GimpGradientFile.py ->
build\lib.win32-2.7\PIL copying PIL\GimpPaletteFile.py ->
build\lib.win32-2.7\PIL copying PIL\GribStubImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\Hdf5StubImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\IcnsImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\IcoImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\Image.py ->
build\lib.win32-2.7\PIL copying PIL\ImageChops.py ->
build\lib.win32-2.7\PIL copying PIL\ImageCms.py ->
build\lib.win32-2.7\PIL copying PIL\ImageColor.py ->
build\lib.win32-2.7\PIL copying PIL\ImageDraw.py ->
build\lib.win32-2.7\PIL copying PIL\ImageDraw2.py ->
build\lib.win32-2.7\PIL copying PIL\ImageEnhance.py ->
build\lib.win32-2.7\PIL copying PIL\ImageFile.py ->
build\lib.win32-2.7\PIL copying PIL\ImageFilter.py ->
build\lib.win32-2.7\PIL copying PIL\ImageFont.py ->
build\lib.win32-2.7\PIL copying PIL\ImageGrab.py ->
build\lib.win32-2.7\PIL copying PIL\ImageMath.py ->
build\lib.win32-2.7\PIL copying PIL\ImageMode.py ->
build\lib.win32-2.7\PIL copying PIL\ImageMorph.py ->
build\lib.win32-2.7\PIL copying PIL\ImageOps.py ->
build\lib.win32-2.7\PIL copying PIL\ImagePalette.py ->
build\lib.win32-2.7\PIL copying PIL\ImagePath.py ->
build\lib.win32-2.7\PIL copying PIL\ImageQt.py ->
build\lib.win32-2.7\PIL copying PIL\ImageSequence.py ->
build\lib.win32-2.7\PIL copying PIL\ImageShow.py ->
build\lib.win32-2.7\PIL copying PIL\ImageStat.py ->
build\lib.win32-2.7\PIL copying PIL\ImageTk.py ->
build\lib.win32-2.7\PIL copying PIL\ImageTransform.py ->
build\lib.win32-2.7\PIL copying PIL\ImageWin.py ->
build\lib.win32-2.7\PIL copying PIL\ImImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\ImtImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\IptcImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\Jpeg2KImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\JpegImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\JpegPresets.py ->
build\lib.win32-2.7\PIL copying PIL\McIdasImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\MicImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\MpegImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\MpoImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\MspImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\OleFileIO.py ->
build\lib.win32-2.7\PIL copying PIL\PaletteFile.py ->
build\lib.win32-2.7\PIL copying PIL\PalmImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\PcdImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\PcfFontFile.py ->
build\lib.win32-2.7\PIL copying PIL\PcxImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\PdfImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\PixarImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\PngImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\PpmImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\PsdImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\PSDraw.py ->
build\lib.win32-2.7\PIL copying PIL\PyAccess.py ->
build\lib.win32-2.7\PIL copying PIL\SgiImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\SpiderImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\SunImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\TarIO.py ->
build\lib.win32-2.7\PIL copying PIL\TgaImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\TiffImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\TiffTags.py ->
build\lib.win32-2.7\PIL copying PIL\WalImageFile.py ->
build\lib.win32-2.7\PIL copying PIL\WebPImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\WmfImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\XbmImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\XpmImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL\XVThumbImagePlugin.py ->
build\lib.win32-2.7\PIL copying PIL_binary.py ->
build\lib.win32-2.7\PIL copying PIL_tkinter_finder.py ->
build\lib.win32-2.7\PIL copying PIL_util.py ->
build\lib.win32-2.7\PIL copying PIL__init__.py ->
build\lib.win32-2.7\PIL running egg_info writing requirements to
Pillow.egg-info\requires.txt writing Pillow.egg-info\PKG-INFO
writing top-level names to Pillow.egg-info\top_level.txt writing
dependency_links to Pillow.egg-info\dependency_links.txt warning:
manifest_maker: standard file '-c' not found
reading manifest file 'Pillow.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching
' .sh'找不到匹配的先前包含的目录 'docs_static'警告:未找到匹配的先前包含的文件 '.coveragerc'警告:找不到与先前包含的文件匹配的文件 '.editorconfig'警告:找不到先前包含的文件 匹配".landscape.yaml"警告:没有以前包含的文件 找到匹配的'.travis'警告:没有先前包含的文件 找到匹配的'.travis *'警告:没有先前包含的文件 找到匹配的"appveyor.yml"警告:没有先前包含的文件 找到匹配的"build_children.sh"警告:先前未包含 找到匹配"tox.ini"警告的文件:先前未包含 分发警告中的任何位置都找到与".git "匹配的文件:否 先前包含的与' .pyc'匹配的文件,位于 分发警告:没有以前包含的与" .so"匹配的文件 在分发写清单文件的任何地方都可以找到 运行build_ext的"Pillow.egg-info \ SOURCES.txt"
'.sh' no previously-included directories found matching 'docs_static' warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching '.editorconfig' warning: no previously-included files found matching '.landscape.yaml' warning: no previously-included files found matching '.travis' warning: no previously-included files found matching '.travis*' warning: no previously-included files found matching 'appveyor.yml' warning: no previously-included files found matching 'build_children.sh' warning: no previously-included files found matching 'tox.ini' warning: no previously-included files matching '.git' found anywhere in distribution warning: no previously-included files matching '.pyc' found anywhere in distribution warning: no previously-included files matching '.so' found anywhere in distribution writing manifest file 'Pillow.egg-info\SOURCES.txt' running build_ext
The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\home\site\wwwroot\env\build\pillow\setup.py", line 756, in <module>
raise RequiredDependencyException(msg) __main__.RequiredDependencyException:
The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
---------------------------------------- Cleaning up... .................................................... Command
D:\ home \ site \ wwwroot \ env \ Scripts \ python.exe -c导入setuptools, tokenize; 文件 ='D:\ home \ site \ wwwroot \ env \ build \ pillow \ setup.py'; exec(compile(getattr(tokenize, '打开',打开)(文件).read().replace('\ r \ n','\ n'),文件, 'exec'))安装--record d:\ local \ temp \ pip-nu1mtm-record \ install-record.txt --single-version-externally-managed --compile --install-headers D:\ home \ site \ wwwroot \ env \ include \ site \ python2.7失败并显示错误代码 D:\ home \ site \ wwwroot \ env \ build \ pillow中的1存储调试日志 D:\ home \ pip \ pip.log中发生故障网站期间发生错误 部署.错误-更改已提交到远程存储库,但 部署到网站失败.
D:\home\site\wwwroot\env\Scripts\python.exe -c "import setuptools, tokenize;file='D:\home\site\wwwroot\env\build\pillow\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record d:\local\temp\pip-nu1mtm-record\install-record.txt --single-version-externally-managed --compile --install-headers D:\home\site\wwwroot\env\include\site\python2.7 failed with error code 1 in D:\home\site\wwwroot\env\build\pillow Storing debug log for failure in D:\home\pip\pip.log An error has occurred during web site deployment. Error - Changes committed to remote repository but deployment to website failed.
谢谢
推荐答案
似乎您正在使用Azure Web Apps/App Services部署包含Pillow
程序包的Django应用程序,而Pillow
程序包似乎您在requirements.txt
中进行了声明,例如Pillow>=2.0.0
.
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
.
但是,不幸的是,在Azure App Services上使用Pillow
包存在两个问题.
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.
用作Python所需的图像库的GDI API&资源.在Azure App Services上,所有GDI调用都受到限制和阻止,请参见
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.
因此,部署Django应用程序的唯一方法是使用Azure VM.
So the only way for deploying your Django App is using Azure VM.
这篇关于Microsoft Azure Django Python安装错误枕头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!