Kivy 在 Mac 中找不到 PIL 模块 [英] Kivy cannot find PIL module in Mac

查看:27
本文介绍了Kivy 在 Mac 中找不到 PIL 模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OSX 10.10.2、Python 2.7.9、Kivy 1.9

OSX 10.10.2, Python 2.7.9, Kivy 1.9

当我收到未找到错误时,我使用 sudo pip install Pillow 安装 Pillow.我可以在 python help('modules') 中找到 PIL,但在 kivy help('modules')

I used sudo pip install Pillow to install Pillow when i get the not found error. I can find PIL in python help('modules') but not in kivy help('modules')

我尝试了 Kivy 用户组,但还没有得到回复.提前谢谢!

I tried Kivy user group but got no reply yet. Thank you in advance!

推荐答案

Kivy 1.9 包使用它自己的虚拟环境.您必须确保将模块安装到其中.只需这样做::

Kivy 1.9 package uses it's own Virtual Environment. You have to make sure to install modules into that. Simply do::

kivy -m pip install pillow

这篇关于Kivy 在 Mac 中找不到 PIL 模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆