无法导入时如何找到 Python 模块源的位置?

How do I find the location of Python module sources while I can not import it?

How do I find the location of Python module sources? 中的答案说只需导入它并打印其 __file__。但我的问题是我无法导入库 cv2 而它 returns ImportError: libcudart.so.7.5: cannot open shared object file: No such file or directory,所以我也无法获取它的 __file__。我想找到Python在哪里导入这个库,这样我就可以检查这个库有什么问题。

尝试:

import imp
imp.find_module('cv2')