add at 2013/08/21 :
試試PIL庫
www.pythonware.com/products/pil/
【ps:只有32位的庫】
ImportError: No module named PIL
查到問題解決方案:
1:不通過 from PIL import Image 而直接 import Image
2:查看目錄python安裝目錄 C:\Python27\Lib\site-packages下沒有PIL目錄,說明沒安裝PIL,通過命令 pip install pil,再次查看那個目錄,出現了PIL,安裝完成,收工。
執行命令pip install pil時,又遇到問題:error: Unable to find vcvarsall.bat
For Windows installations:
While running setup.py for package installations Python 2.7 searches for an installed Visual Studio 2008. You can trick Python to use a newer Visual Studio by setting the correct path in VS90COMNTOOLS environment variable before calling setup.py
.
If you have Visual Studio 2010 installed, execute
SET VS90COMNTOOLS=%VS100COMNTOOLS%
or with Visual Studio 2012 installed
SET VS90COMNTOOLS=%VS110COMNTOOLS%
picked from :http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat