加载模块枕头时出错

时间:2014-03-21 13:16:59

标签: python anaconda

我使用Anaconda安装Pillow但是如果我无法加载模块(见下文)。我怎么解决这个问题?

dhcp-86-216:Python_code Alberto$ pip install Pillow
Requirement already satisfied (use --upgrade to upgrade): Pillow in /Users/Alberto/anaconda/lib/python2.7/site-packages
Cleaning up...
dhcp-86-216:Python_code Alberto$ python 
Python 2.7.6 (v2.7.6:3a1db0d2747e, Nov 10 2013, 00:42:54) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import Pillow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named Pillow

1 个答案:

答案 0 :(得分:3)

导入PIL,而不是Pillow

import PIL