我正在尝试按照文档开始使用 pybind11 。我已经使用 pip 安装了 pybind11。该目录的位置是:
~/anaconda3/lib/python3.6/site-packages/pybind11
下一步是编译测试用例。根据文档,我应该运行
mkdir build
cd build
cmake ..
make check -j 4
但是,运行时cmake ..
出现错误CMake Error: The source directory "/home/MyUserName/anaconda3/lib/python3.6/site-packages/pybind11" does not appear to contain CMakeLists.txt
。所以看来我在pip install 创建的目录CMakeLists.txt
中没有该文件。pybind11
知道这里出了什么问题吗?
湖上湖
叮当猫咪
相关分类