Search code examples
pythonpippython-wheelcrfpython-crfsuite

ValueError ['path'] failed building wheel for python-crfsuite


I am trying to install python-CRFSuite using this command:

pip install python-crfsuite

Before this I use

SET VS90COMNTOOLS=%VS140COMNTOOLS%

since I am using Visual studio 2015. After running the installation command i get the following error:

File "C:\Python34\lib\distutils\msvc9compiler.py", line 287, in query_vcvarsall
      raise ValueError(str(list(result.keys())))
  ValueError: ['path']

  ----------------------------------------
  Failed building wheel for python-crfsuite 

If someone has faced same problem or has installed crfsuite on windows has knowledge about this then please help me solve this error


Solution

  • I tried another workaround. Installed Mingw from this link http://sourceforge.net/projects/mingw/files and then used this link http://versioneye.com/python/python-crfsuite/0.8.1 to install pycrfsuite using the command :
    pip install https://pypi.python.org/packages/source/p/python-crfsuite/python-crfsuite-0.8.1.‌​tar.gz
    and it worked!! I don't understand exactly why though