今天安裝PIL花了我好多的時間。python
剛開始,我手動下載PIL原碼,編譯安裝。django
啓動個人django項目,報下面的錯誤,徹底不懂是麼意思。測試
CommandError: One or more models did not validate: user.userprofile: "photo": To use ImageFields, you need to install the Python Imaging Library. Get it at http://www.pythonware.com/products/pil/ .
手動測試了一下:ui
The _imaging extension was built for another version of Pillow or PIL
這中問題,難道是我手動編譯的引發的,好巴,我錯了。使用PiP吧spa
但是。這這code
Could not find any downloads that satisfy the requirement PIL
好吧,我又錯了。用yum吧blog
裝好之後,啓動個人項目,此次成功了。rem
虐心阿。最經用PYTHON老不順心,PIP安裝包時,下載速度實在是慢的要時。it