Mac OS系统上安装Python的Pillow库的教程.doc_第1页
Mac OS系统上安装Python的Pillow库的教程.doc_第2页
Mac OS系统上安装Python的Pillow库的教程.doc_第3页
Mac OS系统上安装Python的Pillow库的教程.doc_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Mac OS系统上安装Python的Pillow库的教程 1.安装pip sudoeasy_installpip pip安装成功就可以直接安装pil或者pillow 2.通过命令pipinstallpil pipinstallPil Downloading/unpackingPilCouldnotfindanydownloadsthatsatisfytherequirementPilSomeexternallyhostedfileswereignored(use-allow-externalPiltoallow).Cleaningup.NodistributionsatallfoundforPilStoringdebuglogforfailurein/Users/macbook/Library/Logs/pip.log 3.所以就安装pillow pipinstall-use-wheelPillow Downloading/unpackingPillowDownloadingPillow-2.4.0.zip(6.5MB):5.0MBdownloadedCleaningup. 弄了会别的回来发现还没有下载完,这叫一个慢呀,于是放弃 4.Git 通过git下载源码地址s:/github./python-imaging/Pillow gitclones:/github./python-imaging/Pillow.git 然后开始编译安装 4.1 pythonsetup.pybuild_ext-i 编译完之后会提示运行测试例子,并且发现JPEGsupportnotavailable -versionPillow2.4.0platformdarwin2.7.5(default,Aug25xx,00:04:04)GCC4.2.1CompatibleAppleLLVM5.0(clang-500.0.68)-TKINTERsupportavailable*JPEGsupportnotavailable*OPENJPEG(JPEG2000)supportnotavailable-ZLIB(PNG/ZIP)supportavailable*LIBTIFFsupportnotavailable-FREETYPE2supportavailable*LITTLECMS2supportnotavailable*WEBPsupportnotavailable*WEBPMUXsupportnotavailable-Toaddamissingoption,makesureyouhavetherequiredlibrary,andsetthecorrespondingROOTvariableinthesetup.pyscript.Tocheckthebuild,runtheselftest.pyscript. 4.2因为JPEGsupportnotavailable,运行pythonselftest.py报告错误 1testsof57failed. 于是只好卸载pillow 可以通过pip命令来卸载 pipuninstallpillowsudopipuninstallpillow Password:UninstallingPillow:/Library/Python/2.7/site-packages/Pillow-2.4.0-py2.7-macosx-10.9-intel.egg/usr/local/bin/pilconvert.py/usr/local/bin/pildriver.py/usr/local/bin/pilfile.py/usr/local/bin/pilfont.py/usr/local/bin/pilprint.pyProceed(y/n)?y 成功之后需要安装libjpeg的支持 brewinstalllibjpeg 安装成功之后重新编译pillow -versionPillow2.4.0platformdarwin2.7.5(default,Aug25xx,00:04:04)GCC4.2.1CompatibleAppleLLVM5.0(clang-500.0.68)-TKINTERsupportavailable-JPEGsupportavailable*OPENJPEG(JPEG2000)supportnotavailable-ZLIB(PNG/ZIP)supportavailable*LIBTIFFsupportnotavailable-FREETYPE2supportavailable*LITTLECMS2supportnotavailable*WEBPsupportnotavailable*WEBPMUXsupportnotavailable-pythonselftest.py-Pillow2.4.0TESTSUMMARY-Pythonmodulesloadedfrom/Users/macbook/yyang/app-devel-source/python/Pillow/PILBinarymodulesloadedfrom/Users/macbook/yyang/app-devel-source/python/Pillow/PIL-PILCOREsupportok-TKINTERsupportok-JPEGsupportok*JPEG2000supportnotinstalled-ZLIB(PNG/ZIP)supportok*LIBTIFFsupportnotinstalled-FREETYPE2supportok*LITTLECMS2supportnotinstall

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论