Skip to content

执行nb self install nb-cli-plugin-webui时报错 #16

Description

@qihang518887

Building wheels for collected packages: psutil
Building wheel for psutil (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for psutil (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [59 lines of output]
/tmp/pip-build-env-1rkk68_m/overlay/lib/python3.13/site-packages/setuptools/dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:

          License :: OSI Approved :: BSD License

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
    self._finalize_license_expression()
  running bdist_wheel
  running build
  running build_py
  creating build/lib.linux-aarch64-cpython-313/psutil
  copying psutil/_pswindows.py -> build/lib.linux-aarch64-cpython-313/psutil
  copying psutil/_pssunos.py -> build/lib.linux-aarch64-cpython-313/psutil
  copying psutil/_psposix.py -> build/lib.linux-aarch64-cpython-313/psutil
  copying psutil/_psosx.py -> build/lib.linux-aarch64-cpython-313/psutil
  copying psutil/_pslinux.py -> build/lib.linux-aarch64-cpython-313/psutil
  copying psutil/_psbsd.py -> build/lib.linux-aarch64-cpython-313/psutil
  copying psutil/_psaix.py -> build/lib.linux-aarch64-cpython-313/psutil
  copying psutil/_compat.py -> build/lib.linux-aarch64-cpython-313/psutil
  copying psutil/_common.py -> build/lib.linux-aarch64-cpython-313/psutil
  copying psutil/__init__.py -> build/lib.linux-aarch64-cpython-313/psutil
  creating build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/test_windows.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/test_unicode.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/test_testutils.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/test_system.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/test_sunos.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/test_process_all.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/test_process.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/test_posix.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/test_osx.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/test_misc.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/test_memleaks.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/test_linux.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/test_contracts.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/test_connections.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/test_bsd.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/test_aix.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/runner.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/__main__.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  copying psutil/tests/__init__.py -> build/lib.linux-aarch64-cpython-313/psutil/tests
  running build_ext
  building 'psutil._psutil_linux' extension
  creating build/temp.linux-aarch64-cpython-313/psutil
  creating build/temp.linux-aarch64-cpython-313/psutil/arch/linux
  aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=598 -DPy_LIMITED_API=0x03060000 -DPSUTIL_LINUX=1 -I/root/.local/share/pipx/venvs/nb-cli/include -I/usr/include/python3.13 -c psutil/_psutil_common.c -o build/temp.linux-aarch64-cpython-313/psutil/_psutil_common.o
  psutil/_psutil_common.c:9:10: fatal error: Python.h: No such file or directory
      9 | #include <Python.h>
        |          ^~~~~~~~~~
  compilation terminated.
  psutil could not be installed from sources. Perhaps Python header files are not installed. Try running:
    sudo apt-get install gcc python3-dev
  error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for psutil
Failed to build psutil
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> psutil

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions