在MacBook Pro上使用pybind11

问题描述

我正在尝试在Macbook上使用pybind11,并且正在尝试按照https://pybind11.readthedocs.io/en/stable/basics.html中的说明进行操作,我从那里的网站安装了cmake 我创建了

bound = em1.fullname
unbound = Employee.fullname

bound()       # OK,first argument is em1
unbound()     # Error,no argument for self
unbound(em1)  # OK,first argument supplied

但是当我尝试

mkdir build
cd build

我遇到错误

cmake .. 

我该如何解决?我想在Mac上使用pybind11,看来我需要解决此问题

在我编写的Xcode中使用pybind11时,我也遇到了问题

CMake Error: The source directory "/Users/fai" does not appear to contain CMakeLists.txt.
Specify --help for usage,or press the help button on the CMake GUI.

但是我遇到了错误

#include <pybind11/embed.h>

我根据那里的网站正确安装了pybind11

解决方法

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

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

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