The _imaging C module is not installed


python开发的系统, 上传图片的时候,系统报这个错误。应该是缺少对应的库,请问如何解决呢?

错误 开发 python debug

liccc 9 years, 11 months ago

这个问题,很多用python做开发的人都遇到过吧!其实解决方法也很简单

进入你的虚拟环境,并执行如下命令

pip uninstall Pillow
sudo apt-get install libjpeg-dev
pip install Pillow
zargx answered 9 years, 11 months ago

Your Answer