Kivy在Mac中找不到PIL模块 [英] Kivy cannot find PIL module in Mac
本文介绍了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屋!
查看全文