国产麒麟系统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.