第2世界
发布于 2024-01-08 / 7 阅读 / 0 评论 / 0 点赞

国产麒麟python安装pycups

国产麒麟系统ARM64直接使用pip安装pycups安装失败,需要先安装系统的依赖:

sudo apt install libcups2-dev python3-dev python3-setuptools

这点在pycups官网中有说明,一直以为直接安装就行,折腾了很久,https://github.com/OpenPrinting/pycups

Packages needed for compilation (default package names are from Fedora, Ubuntu names are in the brackets

if they differ from Fedora):

- gcc

- cups-devel (libcups2-dev)

- python3-devel (python3-dev)

- (since Python 3.12) python3-setuptools

Please install them before compiling PyCUPS.


评论