Python安装第三方PIL图像处理库---Windows环境
2017-03-10 11:49
579 查看
操作系统:Windows7 64bit
python 2.7.13 [MSC v.1500 64 bit (AMD64)] on win32
一般来说,安装第三方模块直接使用pip包管理器就OK了,于是我就这样安装了
pip install PIL
结果
Collecting PIL
Could not find a version that satisfies the requirement PIL (from versions: ) No matching distribution found for PIL
找不到安装文件。
查了一下才发现,库里已经没有PIL文件了,而是被包含在Pillow模块里。然后我又直接安装Pillow
pip install Pillow
还是失败。然后我就放弃从官网安装了。
这里要提醒一下,官网的是32bit库,所以要想安装64bit库,就要去搜寻第三方的了。然后我的Python是64bit,不知道是不是因为这样所以PIL库一直安装失败。
所以我选择了手动安装PIL库,从第三方下载,解决方法如下:
从
http://effbot.org/downloads/#pil href="http://effbot.org/downloads/#pil" target=_blank>点击打开链接
下载
PIL-1.1.7.tar.gz [506k]
然后运行cmd,切换到对应目录,执行
pip install PIL-1.1.7.tar.gz
安装成功
Processing e:\1????\python\pil-1.1.7.tar.gz
Installing collected packages: PIL
Running setup.py install for PIL ... done
Successfully installed PIL
进入Python交互模式,输入
>>> import Image
>>>
安装成功。
-------------------------------------------------------------------------
第一次写博客,还有许多地方有待改进。如有错误,欢迎纠正。
python 2.7.13 [MSC v.1500 64 bit (AMD64)] on win32
一般来说,安装第三方模块直接使用pip包管理器就OK了,于是我就这样安装了
pip install PIL
结果
Collecting PIL
Could not find a version that satisfies the requirement PIL (from versions: ) No matching distribution found for PIL
找不到安装文件。
查了一下才发现,库里已经没有PIL文件了,而是被包含在Pillow模块里。然后我又直接安装Pillow
pip install Pillow
还是失败。然后我就放弃从官网安装了。
这里要提醒一下,官网的是32bit库,所以要想安装64bit库,就要去搜寻第三方的了。然后我的Python是64bit,不知道是不是因为这样所以PIL库一直安装失败。
所以我选择了手动安装PIL库,从第三方下载,解决方法如下:
从
http://effbot.org/downloads/#pil href="http://effbot.org/downloads/#pil" target=_blank>点击打开链接
下载
PIL-1.1.7.tar.gz [506k]
然后运行cmd,切换到对应目录,执行
pip install PIL-1.1.7.tar.gz
安装成功
Processing e:\1????\python\pil-1.1.7.tar.gz
Installing collected packages: PIL
Running setup.py install for PIL ... done
Successfully installed PIL
进入Python交互模式,输入
>>> import Image
>>>
安装成功。
-------------------------------------------------------------------------
第一次写博客,还有许多地方有待改进。如有错误,欢迎纠正。
相关文章推荐
- python windows环境下安装第三方requests和PIL
- Windows安装Python图像处理库:PIL模块
- 【转】Windows安装Python图像处理库:PIL模块
- windows下Python 3.x图形图像处理库PIL的安装
- Windows安装Python图像处理库:PIL模块
- windows下Python 3.x图形图像处理库PIL的安装
- Windows安装Python图像处理库:PIL模块
- 在Windows基于anaconda的python3.6环境下安装用于语音信号处理的库librosa
- Win7下安装Python图像处理库PIL、pytesser、tesseract进行验证码识别
- Windows7下安装Python图像处理库PIL、pytesser
- Win7 64位下Python安装PIL图像处理库
- Win7下安装Python图像处理库PIL
- Mabook 安装Python最新版本(3.6.4)、GUI开发环境、图像处理、视频处理环境--------完整流程
- python安装第三方模块(windows环境)
- Python图像处理库(PIL)的安装与简单使用
- Win7 64位下Python安装PIL图像处理库
- 安装Python图像处理库PIL、pytesseract进行验证码识别
- Python安装PIL(图像处理类库)
- 初始----python数字图像处理--:环境安装与配置
- windows环境python安装第三方库