Jetson TX2 下安装pillow 报ImportError: The _imagingft C module is not installed方案
2019-03-30 11:32
375 查看
版权声明:CSDN本文为博主原创文章,未经允许请勿转载 https://blog.csdn.net/zt1091574181/article/details/88909508
Jetson TX2上的Ubuntu18.04 系统,使用pip安装pillow,运行时出现ImportError错误“The _imagingft C module is not installed”
具体出错的那行代码是font = ImageFont.truetype()
解决过程如下:
先确保代码中导入语句是:
[code]from PIL import ImageFont
尝试先卸载pillow:
[code]pip3 uninstall pillow
安装系统devel包:
[code]sudo apt-get install libtiff-devel libjpeg-devel libzip-devel freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel
再重新安装pillow:
[code]pip3 install pillow
安装完毕。但运行时仍然报错,试了几次仍然不行。
最后在安装pillow时,加上 --no-cache-dir参数:
[code]pip3 install pillow --no-cache-dir
这次就顺利的成功了。
相关文章推荐
- centos下安装pillow报ImportError: The _imagingft C module is not installed的解决方案
- Python图片处理PIL/pillow/生成验证码/出现KeyError: 和The _imagingft C module is not installed
- Python图片处理PIL/pillow/生成验证码/出现KeyError: 和The _imagingft C module is not installed
- ImportError: The _imagingft C module is not installed
- PIL写入字体出现“ImportError: The _imagingft C module is not installed”的解决方法
- PIL写入字体出现ImportError:The _imagingft C module is not installed 错误的解决方法
- Pillow-PIL的完全Fok替代库--完美解决报错The _imagingft C module is not installed的解决方案
- ImportError: The _imagingft C module is not installed
- Python图片处理PIL/pillow/生成验证码/出现KeyError: 和The _imagingft C module is not installed
- ImportError:The _imagingft C module is not installed 错误的解决方法
- ImportError: The _imagingft C module is not installed
- Python安装Imaging报错:The _imaging C module is not installed问题解决方法
- Windows系统下,报错The _imagingft C module is not installed
- Python: The _imagingft C module is not installed错误的解决
- 用pil产生验证码出现:ImportError: The _imagingft C module is not installed
- PIL “The _imagingft C module is not installed” 错误补救
- 解决Windows下PIL库的"The _imagingft C module is not installed"错误
- window下Django第三方APP调用PIL生成验证码出现ImportError: The _imagingft C module is not installed解决
- 解决PIL “decoder jpeg not available” 和 “ImportError: The _imaging C module is not installed”的问题
- 安装PIL时_imagingft C module is not installed错误的解决方法