python中PIL庫在使用時出現The _imagingft C module is not installed錯誤

當增加一個表中的字段時,可能需要重啓一下server服務,後臺纔會有所變動。

ImproperlyConfigured: The included urlconf jiae.urls doesn't have any patterns in it錯誤出現原因在於:view中使用了reverse,應該使用reverse_lazy

python中PIL庫在使用時出現The _imagingft C module is not installed錯誤,需要安裝libfreetype6-dev
需要先刪除pillow再進行安裝
sudo pip uninstall -y pillow
刪除PIL相關文件夾:/usr/local/bin/pil , usr/lib/python2.7/dist-packages/PIL , /usr/share/pyshared/PIL
sudo apt-get install libfreetype6-dev
sudo pip install pillow.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章