Collecting PyGObject
Using cached pygobject-3.48.2.tar.gz (715 kB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [54 lines of output]
Collecting meson-python>=0.12.1
Using cached meson_python-0.16.0-py3-none-any.whl.metadata (4.1 kB)
Collecting pycairo>=1.16
Using cached pycairo-1.26.0.tar.gz (346 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting meson>=0.63.3 (from meson-python>=0.12.1)
Using cached meson-1.4.1-py3-none-any.whl.metadata (1.8 kB)
Collecting packaging>=19.0 (from meson-python>=0.12.1)
Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting pyproject-metadata>=0.7.1 (from meson-python>=0.12.1)
Using cached pyproject_metadata-0.8.0-py3-none-any.whl.metadata (3.0 kB)
Collecting tomli>=1.0.0 (from meson-python>=0.12.1)
Using cached tomli-2.0.1-py3-none-any.whl.metadata (8.9 kB)
Using cached meson_python-0.16.0-py3-none-any.whl (26 kB)
Using cached meson-1.4.1-py3-none-any.whl (937 kB)
Using cached packaging-24.1-py3-none-any.whl (53 kB)
Using cached pyproject_metadata-0.8.0-py3-none-any.whl (7.5 kB)
Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Building wheels for collected packages: pycairo
Building wheel for pycairo (pyproject.toml): started
Building wheel for pycairo (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for pycairo (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/cairo
copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-38/cairo
copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-38/cairo
copying cairo/py.typed -> build/lib.linux-x86_64-cpython-38/cairo
running build_ext
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycairo
Failed to build pycairo
ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
解决方法:
conda install -c conda-forge cairo
conda install -c conda-forge pygobject