我在shell中使用这个命令来安装PIL:
easy_install PIL
然后我运行 python
并输入:import PIL
。但我得到这个错误:
Traceback (most recent call last):
File "<console>", line 1, in <module>
ImportError: No module named PIL
我从来没有遇到过这样的问题,你觉得呢?
最佳答案
在 shell 中,运行:
pip install Pillow
注意:PIL 已弃用,pillow是继任者。
https://stackoverflow.com/questions/8863917/