当前位置: 首页 > 工具软件 > pyCairo > 使用案例 >

Ubuntu下安装pycairo报错

齐英韶
2023-12-01

Ubuntu下安装pycairo报错

  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /tmp/tmpg2zaqc9b build_wheel /tmp/tmpsipyswup
       cwd: /tmp/pip-install-0xjzbjuh/pycairo
  Complete output (12 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/cairo
  copying cairo/__init__.py -> build/lib.linux-x86_64-3.8/cairo
  copying cairo/__init__.pyi -> build/lib.linux-x86_64-3.8/cairo
  copying cairo/py.typed -> build/lib.linux-x86_64-3.8/cairo
  running build_ext
  'pkg-config' not found.
  Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']
  ----------------------------------------
  ERROR: Failed building wheel for pycairo

解决办法:
sudo apt-get install libcairo2-dev

 类似资料: