pybind11 running the test cases

后端 未结 1 1043
执笔经年
执笔经年 2020-12-12 00:20

I\'m trying to learn pybind11 and the first Google result is this page, where you should be guided towards compiling and running some test cases. From this page

相关标签:
1条回答
  • 2020-12-12 01:10

    You need to install pybind11 as instructed here by cloning the GitHub repository:

    python3 -m pip install pytest numpy scipy
    sudo apt install -y cmake python3-dev libeigen3-dev libboost-dev git
    git clone https://github.com/pybind/pybind11.git
    cd pybind11
    cmake -DDOWNLOAD_CATCH=1
    mkdir build
    cd build
    cmake ..
    sudo make install
    cd ..
    

    Then you can run the tests by going to the folder cd tests. Next, follow steps in the tutorial, starting with mkdir build.

    P.S. You may also need to make sure your Python packages are uptodate, follwing the instructions here.

    0 讨论(0)
提交回复
热议问题