laurentkneip / opengv

OpenGV is a collection of computer vision methods for solving geometric vision problems. It is hosted and maintained by the Mobile Perception Lab of ShanghaiTech.
Other
1.01k stars 354 forks source link

ModuleNotFoundError: No module named 'pyopengv' #84

Closed TopGun666 closed 5 years ago

TopGun666 commented 5 years ago

Dear, I have installed successful on ubuntu , python 3.6. And pyopengv.cpython-36m-x86_64-linux-gnu.so can be found at/usr/local/lib/python3/dist-packages/pyopengv.cpython-36m-x86_64-linux-gnu.so.However, pyopengv can't be imported and the tests.py in subfolder of opengv can't run. Thanks Yu.He

TopGun666 commented 5 years ago

I have solve the problem. The install path is should be set to /usr/local/lib/python3.6/dist-packages/. Run the command as follow, the problem will be solved.

cd /usr/local/lib/python3.6/dist-packages/
sudo ln -s /usr/local/lib/python3/dist-packages/pyopengv.cpython-36m-x86_64-linux-gnu.so .
nayanleo commented 5 years ago

@TopGun666 i am having trouble to load pyopengv module, as i gone through your suggetion, but it won't work for me, also i installed python 3.6 for anaconda environment, does it affects the same.

TopGun666 commented 5 years ago

@TopGun666 i am having trouble to load pyopengv module, as i gone through your suggetion, but it won't work for me, also i installed python 3.6 for anaconda environment, does it affects the same.

I used pip envirronment, please check the position of pyopengv.cpython-36m-x86_64-linux-gnu.so and link it to /path/python3.6/dist-packages/.