我已经在 MacOSX 中安装了 OpenPose,我可以执行如下示例:
'./build/examples/openpose/openpose.bin --video examples/media/video.avi'
但我无法在 Python 项目中导入/使用 Openpose 库。
在 Openpose 文件夹中,我完成了:
cd build/python
sudo make install
并导出变量:vim ~/.bashrc
#(Add this line to the end of the file)
export PYTHONPATH=/path/to/openpose/build/python:
但是当我尝试从 Python 控制台导入时:
➜ python
Python 2.7.10 (default, Oct 6 2017, 22:29:07)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import openpose
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named openpose
关于如何解决这个问题以便能够从 Python 项目中使用 Openpose 的任何想法?
谢谢