The answer in How do I find the location of Python module sources? says just import it and print its __file__. But my question is that I cannot import a library cv2 while it returns ImportError: libcudart.so.7.5: cannot open shared object file: No such file or directory, so I cannot get its __file__ too. I want to find where does Python import this library so that I can check what is wrong with the library.
            Asked
            
        
        
            Active
            
        
            Viewed 75 times
        
    0
            
            
        - 
                    1Try `import imp`, `imp.find_module('cv2')`. – acw1668 Oct 18 '16 at 03:25
- 
                    @acw1668 It works! Now you can answer and I accept... – acgtyrant Oct 18 '16 at 03:35
 
     
    