安装PIL的坑】的更多相关文章

今天在centos中使用pip安装PIL死活不成功,报错: Could not find a version that satisfies the requirement PIL (from versions: ) Some externally hosted files were ignored as access to them may be unreliable (use --allow-external PIL to allow). No matching distribution fo…
出现这个问题Some externally hosted files were ignored (use --allow-external PIL to allow)的主要原因是PIL的一些依赖库还没有安装 需要先安装PIL的依赖库 安装步骤 (1)首先通过homebrew安装libtiff,libjpeg webp little-cms2的库 brew install libtiff libjpeg webp little-cms2 (2)然后通过pip安装PIL pip install Pi…
 最近入手MacBook Pro 在配置PIL环境的时候遇到一些问题.现在把解决方式记录下来,希望对有需要的有所帮助. 1. 安装brew : brew 又叫Homebrew,是Mac OSX上的软件包管理工具,能在Mac中方便的安装软件或者卸载软件, 只需要一个命令, 非常方便 brew类似ubuntu系统下的apt-get的功能 如何使用brew 可以参考园区的博客 http://www.cnblogs.com/TankXiao/p/3247113.html#brewinstall ruby…
import sys from _winreg import * # tweak as necessary version = sys.version[:3] installpath = sys.prefix regpath = "SOFTWARE\Python\Pythoncore\%s\\" % (version) installkey = "InstallPath" pythonkey = "PythonPath" pythonpath =…
写个小程序需要安装PIL,但是官网只有32位,无法找到64位安装路径.根据网上教程自行编译,但是由于VS版本问题总是提示“Python error: Unable to find vcvarsall.bat”错误,在折腾无果之后只能下载编译好的PIL1.1.7 64位.地址:http://www.qttc.net/static/file/PIL-fork-1.1.7.win-amd64-py2.7.exe…
安装PIL依赖JPEG.Freetype.LittleCMS, 首先安装这三个环境(第一至三步): 第一步:安装JPEG http://www.ijg.org/files/jpegsrc.v8c.tar.gz $ tar zxvf jpegsrc.v8.tar.gz $ cd jpeg*$ ./configure --enable-shared --enable-static $ make $ sudo make install 第二步:安装Freetype http://downloads.s…
$sudo easy_install PIL WARNING: '' not a valid package name; please use only.-separated package names in setup.py _imaging.c::: fatal error: Python.h: 没有那个文件或目录 #include "Python.h" ^ compilation terminated. error: Setup script exited with error:…
配置:Win7 64位 不过折腾到最后,没有使用PIL,官方的PIL很久木有更新了,换了Pillow,是PIL的衍生吧,一直有更新,但是两者不可在同一环境共存. 1 Python version 2.7 required,which was not found in the registry. 官方下载http://www.pythonware.com/products/pil/,安装PIL,出现如下错误提示,Python version 2.7 required,which was not f…
关于python下安装PIL库遇到的问题及解决办法 关于python下安装PIL库遇到的问题及解决办法 :在下面这个网址下载pipllow(a replacement for PIL) www.lfd.uci.edu... ,我下的版本是Pillow-4.1.1-cp27-cp27m-win32.whl,因为python安装的是32位,所以下载的32... 不过在cmd里用pip install Pillow-4.1.1-cp27-cp27m-win32.whl时候报错:架构不被支持.于是乎网上…
如果在win7x64安装python2.7的时候选择了all user,则安装PIL的时候会显示找不到python. 解决办法:复制下面的代码到一个.py文件并运行: # # script to register Python 2.0 or later for use with win32all # and other extensions that require Python registry settings # # written by Joakim Loew for Secret La…