ImportError: No module named PIL

add at 2013/08/21 : 

試試PIL庫
www.pythonware.com/products/pil/python

【ps:只有32位的庫】 spa

 

ImportError: No module named PIL

查到問題解決方案:code

1:不經過 from PIL import Image 而直接 import Imageip

2:查看目錄python安裝目錄 C:\Python27\Lib\site-packages下沒有PIL目錄,說明沒安裝PIL,經過命令 pip install pil,再次查看那個目錄,出現了PIL,安裝完成,收工。
get

 

執行命令pip install pil時,又遇到問題:error: Unable to find vcvarsall.batit

For Windows installations:pip

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.io

If you have Visual Studio 2010 installed, executeclass

SET VS90COMNTOOLS=%VS100COMNTOOLS%import

or with Visual Studio 2012 installed

SET VS90COMNTOOLS=%VS110COMNTOOLS%

picked from :http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat

相關文章
相關標籤/搜索