python3里的pillow怎么安装_“python安装pillow教程“python3.4怎么安装pil

“python安装pillow教程“python3.4怎么安装pil

python安装pillow教程2020-10-09 03:37:02人已围观

如何在python3.6中装pil库

官方没有满足python3.6版本的PIL库

可以降低python版本或者使用一下pillow函数库代替

python 怎么安装pillow

1. 安装pip

[plain] view plain copy

sudo easy_install pip

pip 安装成功就可以直接安装pil或者pillow

2. 通过命令pip install pil

[plain] view plain copy

pip install Pil

Downloading/unpacking Pil

Could not find any downloads that satisfy the requirement Pil

Some externally hosted files were ignored (use --allow-external Pil to allow).

Cleaning up...

No distributions at all found for Pil

Storing debug log for failure in /Users/macbook/Library/Logs/pip.log

3. 所以就安装pillow

[plain] view plain copy

pip install --use-wheel Pillow

Downloading/unpacking Pillow

Downloading Pillow-2.4.0.zip (6.5MB): 5.0MB downloaded

Cleaning up...

弄了会别的回来发现还没有下载完叫一个慢呀,于是放弃

4. 通过Git下载源码地址https://github.com/python-imaging/Pillow

[plain] view plain copy

git clone https://github.com/python-imaging/Pillow.git

然后开始编译安装

4.1

[plain] view plain copy

python setup.py build_ext -i

编译完之后会提示运行测试例子,并且发现JPEG support not available

[plain] view plain copy

--------------------------------------------------------------

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值