在 CMake 中启用 BUILD_PYTHON

问题描述

我试图使用 https://github.com/CMU-Perceptual-Computing-Lab/openpose 从 Windows 中使用 Openpose。但是当我运行一个 .py 文件时,它返回了一条错误消息

Error: OpenPose library Could not be found. Did you enable `BUILD_PYTHON` in CMake and have this Python script in the right folder?
No module named 'pyopenpose'
An exception has occurred,use %tb to see the full traceback.

Traceback (most recent call last):

  File "C:\Users\Santanu\Desktop\openpose\python\01_body_from_image.py",line 19,in <module>
    raise e

  File "C:\Users\Santanu\Desktop\openpose\python\01_body_from_image.py",line 16,in <module>
    import pyopenpose as op

ModuleNotFoundError: No module named 'pyopenpose'


During handling of the above exception,another exception occurred:

SystemExit: -1

它已经从错误文本中建议在 'BUILD_PYTHON' 中启用 CMake 并且还说 here。但我以前从未使用过 CMake。如何在 'BUILD_PYTHON' 中启用 CMake

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)