需要先删除PIL再进行安装

sudo pip uninstall -y PIL

删除PIL相关文件夹:/usr/local/bin/pil , usr/lib/python2.7/dist-packages/PIL , /usr/share/pyshared/PIL

apt-get install libfreetype6-dev

pip install PIL

04-05 05:10