If I used it in conda env, ModuleNotFoundError: No module named 'example'
ZhangXinNan opened this issue · 3 comments
ZhangXinNan commented
How to resolve it ?
tdegeus commented
Hi @ZhangXinNan Can you give a bit more information? Which example did you compile? How did you compile?
ZhangXinNan commented
@tdegeus I have resolved it.
https://blog.csdn.net/sdlypyzq/article/details/102868602
cmake -DPYTHON_LIBRARY=/Users/zhangxin/anaconda3/envs/py36_pytorch041/lib/libpython3.6m.dylib \
-DPYTHON_INCLUDE_DIR=/Users/zhangxin/anaconda3/envs/py36_pytorch041/include/python3.6 \
-DPYTHON_EXECUTABLE=/Users/zhangxin/anaconda3/envs/py36_pytorch041/bin/python3.6 \
..
tdegeus commented
Great @ZhangXinNan !