gpt4 book ai didi

python - 加载模块 Pillow 时出错

转载 作者:太空宇宙 更新时间:2023-11-04 01:18:58 24 4
gpt4 key购买 nike

我使用 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

最佳答案

导入PIL,而不是Pillow:

import PIL

关于python - 加载模块 Pillow 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22559887/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com