【问题标题】:Having installed Pillow in Anaconda3, Python 3 does not find it在 Anaconda3 中安装 Pillow 后,Python 3 找不到它
【发布时间】:2018-06-25 10:42:25
【问题描述】:

我已经安装了 Pillow,但是当我尝试导入 Image 模块时出现异常:

我该如何解决?

【问题讨论】:

    标签: python-3.x import anaconda python-imaging-library


    【解决方案1】:

    我认为你应该这样尝试: from PIL import Image

    请参考documentation 了解更多信息

    【讨论】:

    • @Aneesh Damodaran:谢谢。我试过了,但出现异常:from PIL import Image: ImportError: DLL load failed: The specified module could not be found.
    • 看了几篇帖子后,看起来架构不匹配。 Got this from another thread:请尝试一次。 1.通过conda remove --force pillow卸载它 2.重新安装。担心原始 Anaconda 发行版有问题:conda install -c conda-forge pillow
    • 成功了!我真的很感谢你的无私精神和时间。恭喜!
    • 很高兴知道它对您有所帮助。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-01-11
    • 1970-01-01
    • 1970-01-01
    • 2019-10-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多