如何在python中安装pylibfreenect?

3npbholx  于 2023-02-21  发布在  Python
关注(0)|答案(1)|浏览(223)

我试图在Pycharm中安装pylibfreenect,但它给我这个错误消息:

Collecting pylibfreenect2
  Using cached pylibfreenect2-0.1.4.tar.gz (125 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\Steffen\AppData\Local\Temp\pip-install-wbvm76g8\pylibfreenect2_46804a2858bc48829d3d48cfaa63fcde\setup.py", line 25, in <module>
          raise OSError("{}: is not found".format(libfreenect2_configh_path))
      OSError: /usr/local/include\libfreenect2\config.h: is not found
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

我查了GitHub论坛https://github.com/OpenKinect/libfreenect,但我不知道如何从那里安装libfreenect。我知道它找不到config.h,因为网站关闭了。我如何仍然可以安装它?如果可能的话,请详细说明。

rqqzpn5f

rqqzpn5f1#

要在Windows上安装libfreenect2,您需要安装一些依赖项libusbTurboJPEGGLFW。然后您需要克隆libfreenect2 repo以使用make && make install命令进行构建。这将在您的机器上安装libfreenect2
MacOS的步骤相同。
有关详细步骤,请参阅此自述文件-https://github.com/OpenKinect/libfreenect2/blob/master/README.md

相关问题