0

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.

Community
  • 1
  • 1
acgtyrant
  • 1,721
  • 1
  • 16
  • 24

1 Answers1

1

Try:

import imp
imp.find_module('cv2')
acw1668
  • 40,144
  • 5
  • 22
  • 34