ImportError:没有名为Image的模块

mih*_*ios 58 python macos python-imaging-library

我也试过了

from PIL import Image
Run Code Online (Sandbox Code Playgroud)

但它给了我ImportError:没有名为PIL的模块.

我已经成功安装了PIL

pip install pil
Run Code Online (Sandbox Code Playgroud)

我还安装了xcode命令行工具.似乎没什么用.

细节:

Mac OS X 10.9

Python 2.7.6

python是/Library/Frameworks/Python.framework/Versions/2.7/bin/python

python是/ usr/bin/python

python是/ usr/local/bin/python

姓名:PIL

版本:1.1.7

位置:/usr/local/lib/python2.7/site-packages/PIL

Mar*_*ers 43

PIL分布被错误包装用于鸡蛋安装.

安装枕头,友好的PIL叉.