简体   繁体   English

ValueError ['path']为python-crfsuite构建轮子失败了

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

I am trying to install python-CRFSuite using this command: 我正在尝试使用此命令安装python-CRFSuite:

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: 因为我使用Visual Studio 2015.运行安装命令后,我收到以下错误:

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 如果有人遇到同样的问题或已经在Windows上安装了crfsuite有关于此的知识,那么请帮我解决这个错误

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 : 通过此链接http://sourceforge.net/projects/mingw/files安装了Mingw,然后使用此链接http://versioneye.com/python/python-crfsuite/0.8.1使用以下命令安装pycrfsuite:
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 我不明白为什么

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM