文档介绍:1. 安装 pip
sudo easy_install pip
pip 安装成功就可以直接安装 pil 或者 pillow
2. 通过命令 pip install pil
pip install Pil
Dow
1. 安装 pip
sudo easy_install pip
pip 安装成功就可以直接安装 pil 或者 pillow
2. 通过命令 pip install pil
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/
3. 所以就安装 pillow
pip install --use-wheel Pillow
Downloading/unpacking Pillow Downloading Pillow- (): downloaded Cleaning up...
Git
然后开始编译安装
python build_ext -i
编译完之后会提示运行测试例子,并且发现 JPEG support not available 因为 JPEG support not available,运行 python 报告错误 1 tests of 57 failed.
于是只好卸载 pillow
可以通过 pip 命令来卸载
pip uninstall pillow su