我的ubuntu12.04,python是2.7的, 要安裝PIL庫
當我用 sudo pip install pil安裝時,錯誤提示:
Could not find any downloads that satisfy the requirement pil
Some externally hosted files were ignored (use --allow-external pil to allow).
當用sudo apt-get install python-imaging可以安裝成功,但是運行程序的時候有錯誤提示:
The _imaging C module is not installed
請問這兩種安裝的方法有什麼區別嗎?請問如何可以使第一種方法安裝成功?懇請各位大師指點,謝謝.
應該是缺少庫,參見http://stackoverflow.com/questions/21242107/pip-install-pil-dont-install-into-virtualenv
我勸你用pillow ,這個比pil兼容性要好的多。