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.

猜你喜欢

转载自blog.csdn.net/u010700415/article/details/28599309
今日推荐