Mac osx 安裝PIL出現Some externally hosted files were ignored (use --allow-external PIL to allow).

OpenSoucre發表於2014-12-31

出現這個問題Some externally hosted files were ignored (use --allow-external PIL to allow)的主要原因是PIL的一些依賴庫還沒有安裝

需要先安裝PIL的依賴庫

安裝步驟

(1)首先通過homebrew安裝libtiff,libjpeg webp little-cms2的庫

brew install libtiff libjpeg webp little-cms2

(2)然後通過pip安裝PIL

pip install Pillow

 

相關文章