ModuleNotFoundError: No module named 'example' while running sample add program #4399
Unanswered
karimkhanp
asked this question in
Q&A
Replies: 1 comment
-
I follow this https://www.youtube.com/watch?v=H2wOlriHGmM and it works |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to integrate C++ with python. I closely followed the documentation here - https://pybind11.readthedocs.io/en/latest/basics.html
My OS - Mac
Steps to reproduce the error -
additional info
So I tried with this command
c++ -O3 -Wall -shared -std=c++11 -undefined dynamic_lookup $(python -m pybind11 --includes) example.cpp -o example$(python3-config --extension-suffix)
But still it gives same error.
I am currently using my virtualenv vi_ai. And while compilation, it usage same virtualenv path so everything looks fine as far as python version concern I believe.
When I do
python3-config
path appears from outside virtualenv path. I don't seepython3-config
in virtualenv site packages.Any recommendation?
I tried same steps on Linux as well but there also getting the same error.
Beta Was this translation helpful? Give feedback.
All reactions