標籤:
安裝PIL的時候遇到個問題,
pip install PILDownloading/unpacking PIL Could not find any downloads that satisfy the requirement PIL Some externally hosted files were ignored (use --allow-external PIL to allow).Cleaning up...No distributions at all found for PILStoring debug log for failure in pip.log
環境:
OS:Win7-64bitPython:2.7.9
解決辦法:
pip install PIL --allow-external PIL --allow-unverified PIL
效果:
-------------------------------------------------------------------- PIL 1.1.7 SETUP SUMMARY -------------------------------------------------------------------- version 1.1.7 platform win32 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] -------------------------------------------------------------------- *** TKINTER support not available (Tcl/Tk 8.5 libraries needed) *** JPEG support not available *** ZLIB (PNG/ZIP) support not available *** FREETYPE2 support not available *** LITTLECMS support not available -------------------------------------------------------------------- To add a missing option, make sure you have the required library, and set the corresponding ROOT variable in the setup.py script. To check the build, run the selftest.py script.Successfully installed PILCleaning up...
解決python的pip install PIL失敗問題