title: ImportError: no module named _CRFPP in Python 2.7.6
body: <p>I installed CRF++0.58 in Python 2.7.6</p>
  
  <p>When I try to import I have the following message:</p>
  
  <pre><code>    &gt;&gt;&gt; import CRFPP
      Traceback (most recent call last):
        File "&lt;stdin&gt;", line 1, in &lt;module&gt;
        File "CRFPP.py", line 42, in &lt;module&gt;
          _CRFPP = swig_import_helper()
        File "CRFPP.py", line 34, in swig_import_helper
          import _CRFPP
      ImportError: No module named _CRFPP
      &gt;&gt;&gt; 
  </code></pre>
  
  <p>The procedure to install is described in the README file in python directory of CRF++0.58, and is:</p>
  
  <pre><code>  $ python setup.py build
    $ sudo python setup.py install
  </code></pre>
  
  <p>This placed in the directory /usr/local/lib/python2.7/dist-packages/ :</p>
  
  <ol>
  <li>CRFPP.py</li>
  <li>CRFPP.pyc</li>
  <li><p>_CRFPP.so</p>
  
  <p>The directory /usr/local/lib/python2.7/dist-packages/ is in the sys.path</p>
  
  <p>In the CRFPP.py in the setup directory contains, in its begin, the following procedure:</p>
  
  <pre><code>#This file was automatically generated by SWIG (http://www.swig.org).
  # Version 2.0.4
  #
  # Do not make changes to this file unless you know what you are doing--modify
  # the SWIG interface file instead.
  
  from sys import version_info
  if version_info &gt;= (2,6,0):
      def swig_import_helper():
          from os.path import dirname
          import imp
          fp = None
          try:
              fp, pathname, description = imp.find_module('_CRFPP',[dirname(__file__)])
          except ImportError:
              import _CRFPP
              return _CRFPP
          if fp is not None:
              try:
                  _mod = imp.load_module('_CRFPP', fp, pathname, description)
              finally:
                  fp.close()
              return _mod
      _CRFPP = swig_import_helper()
      del swig_import_helper
  else:
      import _CRFPP
  del version_info
  </code></pre></li>
  </ol>
  
  <p>imp does not find _CRFPP.so, but found CRFPP.py:</p>
  
  <pre><code>    &gt;&gt;&gt; import imp
      &gt;&gt;&gt; imp.find_module("_CRFPP")
      Traceback (most recent call last):
        File "&lt;stdin&gt;", line 1, in &lt;module&gt;
      ImportError: No module named _CRFPP
  
      &gt;&gt;&gt; imp.find_module("CRFPP")
      (&lt;open file '/usr/local/lib/python2.7/dist-packages/CRFPP.py', mode 'U' at 0x7f7748e4a540&gt;, '/usr/local/lib/python2.7/dist-packages/CRFPP.py', ('.py', 'U', 1))
  </code></pre>