“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
--------------------------------------------------------------