Pip not installing package properly
<p>So I am trying to get hmmlearn working in Jupyter, and I have come across an error while installing Hmmlearn using <code>pip</code>. I have tried this <a href="http://stackoverflow.com/questions/38575860/error-compiling-c-code-for-python-hmmlearn-package">solution</a>, but it didn't work. </p>

<p>It seems to me that <code>pip</code> does install the _hmmc file, but it does so incorrect. instead it has the name </p>

<blockquote>
  <p>_hmmc.cp35-win_amd64</p>
</blockquote>

<p>and the file extesion is <code>.PYD</code>, instead of <code>.c</code></p>

<p>When I run the code to import it, I get this error :</p>

<pre><code>    ImportError                               Traceback (most recent call last)
    &lt;ipython-input-1-dee84c3d5ff9&gt; in &lt;module&gt;()
          7 import os
          8 from pyAudioAnalysis import audioBasicIO as aB
    ----&gt; 9 from pyAudioAnalysis import audioAnalysis as aA

    C:\Users\gover_000\Documents\GitHub\Emotion-Recognition-Prototype\pyAudioAnalysis\audioAnalysis.py in &lt;module&gt;()
         15 import audioFeatureExtraction as aF
         16 import audioTrainTest as aT
   ---&gt;  17 import audioSegmentation as aS
         18 import audioVisualization as aV
         19 import audioBasicIO

    C:\Users\gover_000\Documents\GitHub\Emotion-Recognition-Prototype\pyAudioAnalysis\audioSegmentation.py in &lt;module&gt;()
         16 import sklearn
         17 import sklearn.cluster
    ---&gt; 18 import hmmlearn.hmm
         19 import cPickle
         20 import glob

    C:\Users\gover_000\Anaconda3\envs\python2\lib\site-packages\hmmlearn\hmm.py in &lt;module&gt;()
         19 from sklearn.utils import check_random_state
         20 
    ---&gt; 21 from .base import _BaseHMM
         22 from .utils import iter_from_X_lengths, normalize
         23 

    C:\Users\gover_000\Anaconda3\envs\python2\lib\site-packages\hmmlearn\base.py in &lt;module&gt;()
         11 from sklearn.utils.validation import check_is_fitted
         12 
    ---&gt; 13 from . import _hmmc
         14 from .utils import normalize, log_normalize, iter_from_X_lengths
         15 

    ImportError: cannot import name _hmmc 
</code></pre>

<p>I don't know why <code>pip</code> just doesn't install it correctly, even when I tried to use <code>--no-cache-dir</code></p>

<p>Edit: So i figured out what the problem was. my active python enviroment was python 3.5, as i was manually transferring the installed files to my enviroment, it failed because i had the wrong version.
I had to change my active python enviroment: using <code>activate &lt;my_enviroment name&gt;</code>
after that i could just use <code>pip</code> to install it again and it worked this time.</p>

<p>Looking at your error message I guess that you have downloaded the hmmlearn package from GIT. Have you tried using a wheel (*.whl) file instead? You can download one from <a href="https://pypi.python.org/pypi/hmmlearn#downloads" rel="nofollow">here</a>. Check out which version fits your python installation.</p>

<p>Then use: </p>

<pre><code>pip install &lt;the_wheel_that_corresponds_to_your_python_version&gt;.whl
</code></pre>

<p>Hope it helps. </p>

python pip jupyter hmmlearn