ubuntu Python2.7 安装PIL问题】的更多相关文章

$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:…
一.前言 遇到客户给了一个需求,需要拼接多个图片,上网找到一个解决方式,不过是需要安装PIL的,相信安装过这个库的应该都遇到很多问题,接下来说说怎么解决. 我的环境是: 操作系统:win10 64bit python版本:2.7.15 二.问题 1. 使用pip安装 使用命令: pip install PIL 提示: Could not find a version that satisfies the requirement PIL (from versions: ) No matching…
这是大家常用的两种安装方法 sudo pip install PIL pip install PIL --allow-external PIL --allow-unverified PIL 如果安装成功皆大欢喜啊,我的却出现了问题 这个是说明PIL已经找不到,其实现在已经用Pillow代替了PIL,在使用方面没有不同,API都是相同的. 既然如此,咱们就直接安装Pillow模块吧,执行sudo pip install Pillow…
如果在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…
Ubuntu下安装PIL 1)sudo apt-get install libjpeg-dev 2)sudo apt-get install libfreetype6-dev 3)sudo easy_install PIL 不安装libjpeg-dev,会出现:"decoder jpeg not available"错误,如下图示. 不安装libfreetype6-dev,会出现“The _imagingft C module is not installed”错误,如下图示:   -…
之前摸爬滚打总是各种坑,今天参考这篇文章终于解决了,甚是鸡冻\(≧▽≦)/,电脑不知道怎么的,安装不了16.04,就安装15.10再升级到16.04 requirements: Ubuntu 16.04 python 2.7 Flask tensorflow GPU 版本 安装nvidia driver 经过不断踩坑的安装,终于google到了靠谱的方法,首先检查你的NVIDIA VGA card model sudo lshw -numeric -C display 可以看到你的显卡信息,比如…
 最近入手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…
ubuntu是默认安装了python2的,所以直接使用 pip install XXX 是默认安装到python2的,安装到python3 的指令是 pip3 install XXXX 或者 python3 -m pip install XXX…
配置: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…
出现 OError: decoder jpeg not available 的原因是,没有装JPEG的库,同时要支持png图片的话还要装 ZLIB.FREETYPE2.LITTLECMS的库文件. 先说第一种解决方案:完整安装这些库!!!! 安装方法:http://cn-popeye.iteye.com/blog/1236691      在这篇博客里作者很详细的说了下载地址和安装方法,我这里只是抄过来. 1. install zlib (ubuntu 官方源没有zlib,别想apt-get了)…