Python module not importing
<p>I am attempting to install a <code>c++ / python</code> based library that offers musical onset detection.  Typically, I run <code>sudo pip install foo</code> and <code>cmd+tab</code> over to PyCharm and type <code>import ...</code> and I get auto-completion as I noticed the package resides in <code>Library/Python/2.7/site-packages</code>.  However, after completing the installation process for this library, no such auto-complete is there.  </p>

<p>The complete list of instructions entail using cmake as well as running a setup script for python.  I am unsure about the underlying architectural details (whether its a C++ lib with a python binding, or something..) and whether that plays into my problem.  Here, the installation process is:</p>

<p><a href="http://i.stack.imgur.com/j1rFP.png" rel="nofollow"><img src="http://i.stack.imgur.com/j1rFP.png" alt=""></a></p>

<p>It seems that all the <code>cmake / c++</code> building went of with few warnings and no errors, so that is fine..  and so did the python setups..  I do notice a new python package in the 2.7/site-packages dir in the egg format.  Yet import mod.. sees nothing.  Just compilation errors.  </p>

<p>Is there anything I could have done wrong in the installation process or in the importing that would solve this problem?  Any help in advance is greatly appreciated.  Let me know if more details are needed to diagnosis the problem.</p>

<p>EDIT: Don't have the rep to comment, yet - therefore I had to write an answer.</p>

<p>Just a wild guess, but do you use a virtual environment? If so, did you <code>pip install</code> the package globally or into your virtualenv? You might also check if pycharm is using the exact version of python where your package resides.</p>

python module cmake packages