pybind / cmake_example

Example pybind11 module built with a CMake-based build system
Other
616 stars 218 forks source link

Can not execute test.py in test file #27

Open jmo2014 opened 3 years ago

jmo2014 commented 3 years ago

Anyone has issue with test.py? When I execute the file, the console tells me that the No module named 'cmake_example'. Any one knows how to deal with this problem?

Traceback (most recent call last): File "/Users/jiaqimo/cmake_example/tests/test.py", line 1, in import cmake_example as m ModuleNotFoundError: No module named 'cmake_example'

henryiii commented 3 years ago

You have to install cmake_example before running that file. pip install . or similar (probably in a virtual environment).