How to install pre-built Pillow wheel with libraqm DLLs on Windows?

强颜欢笑 提交于 2020-07-31 03:59:11

问题


I tried using the pre-built wheels for Pillow and corresponding libraqm DLL from here:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow

But the following returns False:

from PIL import features
features.check('raqm')

Am I missing anything?

Context: I need libraqm with Pillow to work with complex fonts on images, as shown here.


回答1:


For anyone who wants RAQM with PIL on Windows, just do pip install Pillow.

Then place the libraqm DLLs in some directory, and then append that directory to environment/shell variable PYTHONPATH. That's it.

Or you could place those DLLs along with your python.exe as commented by @cgohlke.


Just in-case someone wants to know, I'm currently on Python 3.7 (Windows 10) with Pillow 7.2.0 and libraqm-0.7.0.dll



来源:https://stackoverflow.com/questions/62939101/how-to-install-pre-built-pillow-wheel-with-libraqm-dlls-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!