kpu / kenlm

KenLM: Faster and Smaller Language Model Queries
http://kheafield.com/code/kenlm/
Other
2.46k stars 514 forks source link

ERROR: Could not build wheels for kenlm, which is required to install pyproject.toml-based projects #433

Open xyiiinexg3 opened 1 year ago

xyiiinexg3 commented 1 year ago

windows conda python 3.7.12


(fst) D:\xyiiinexg3\1.Workstation\VSCode>pip install kenlm                                 
Collecting kenlm
  Using cached kenlm-0.1.tar.gz (424 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: kenlm
  Building wheel for kenlm (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      'bash' 不是内部或外部命令,也不是可运行的程序
      或批处理文件。
      'bash' 不是内部或外部命令,也不是可运行的程序
      或批处理文件。
      'bash' 不是内部或外部命令,也不是可运行的程序
      或批处理文件。
      running bdist_wheel
      running build
      running build_ext
      error: [WinError 2] 系统找不到指定的文件。
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for kenlm
  Running setup.py clean for kenlm
Failed to build kenlm
ERROR: Could not build wheels for kenlm, which is required to install pyproject.toml-based projects
xyiiinexg3 commented 1 year ago

what can i do? i downloaded Visual studio2022, Microsoft C++ Build Tools, it does not work.