如何在 Windows 上安装带有 libraqm DLL 的预构建枕头轮? [英] How to install pre-built Pillow wheel with libraqm DLLs on Windows?

查看:54
本文介绍了如何在 Windows 上安装带有 libraqm DLL 的预构建枕头轮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用预先构建的轮子 Pillow 和相应的 libraqm DLL 从这里:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow

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

但以下返回False:

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

我错过了什么吗?

上下文:我需要带有 Pillowlibraqm 来处理图像上的复杂字体,如图所示.

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

推荐答案

对于任何想要 RAQMPIL 在 Windows 上的人,只需执行 pip install Pillow.

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

然后放置 libraqm DLL在某个目录中,然后将该目录附加到环境/shell 变量 PYTHONPATH.就是这样.

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

或者您可以将这些 DLL 与您的 python.exe 如@cgohlke 的评论.

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

以防万一有人想知道,我目前使用的是 Python 3.7 (Windows 10) 和 Pillow 7.2.0 和 libraqm-0.7.0.dll

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

这篇关于如何在 Windows 上安装带有 libraqm DLL 的预构建枕头轮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆