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

pyopengv not found #94

Open 5y opened 5 years ago

5y commented 5 years ago

Hello,

I tried to install OpenGV from scratch. the whole process finished completely. However, there is no pyopengv in both python 2.7 and 3.6. could you please let me know what is the problem?

Thanks. R

jarrodhaas commented 5 years ago

I think you just need to update your PYTHONPATH variable so that it points to the pyopengv.cpp file.

the pyopengv.cpp file should be in /opengv/python/pyopengv.cpp, i.e. the directory you cloned the github repo into.

To test if this is the issue, try running python from the command line in the .../opengv/ folder, and type

import pyopengv

python should import pyopengv without error.

if that doesn't work, trying doing the same from the /opengv/python folder.

Jarrod