How do I find the location of Python module sources while I can not import it?
<p>The answer in <a href="http://stackoverflow.com/questions/269795/how-do-i-find-the-location-of-python-module-sources">How do I find the location of Python module sources?</a> says just import it and print its <code>__file__</code>. But my question is that I cannot import a library <code>cv2</code> while it returns <code>ImportError: libcudart.so.7.5: cannot open shared object file: No such file or directory</code>, so I cannot get its <code>__file__</code> too. I want to find where does Python import this library so that I can check what is wrong with the library.</p>

<p>Try:</p>

<pre><code>import imp
imp.find_module('cv2')
</code></pre>

python module python-import