parlance / ctcdecode

PyTorch CTC Decoder bindings
MIT License
816 stars 240 forks source link

probelm when installing ctcdecode in window #215

Open ethio-artifical opened 1 year ago

ethio-artifical commented 1 year ago

i got these error when installing ctcdecode in window

" PS F:\code\VAC_CSLR-main1\ctcdecode> pip install . Processing f:\code\vac_cslr-main1\ctcdecode Preparing metadata (setup.py) ... done Building wheels for collected packages: ctcdecode Building wheel for ctcdecode (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [18 lines of output] 'bash' is not recognized as an internal or external command, operable program or batch file. 'bash' is not recognized as an internal or external command, operable program or batch file. 'bash' is not recognized as an internal or external command, operable program or batch file. C:\Users\ANTENEH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools_distutils\extension.py:134: UserWarning: Unknown Extension options: 'package', 'with_cuda' warnings.warn(msg) running bdist_wheel C:\Users\ANTENEH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\torch\utils\cpp_extension.py:476: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_py running build_ext C:\Users\ANTENEH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\torch\utils\cpp_extension.py:358: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'ctcdecode._ext.ctc_decode' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output] " so my question is how to remove these error

  1. 'bash' is not recognized as an internal or external command,
  2. error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ these are the error i got can anyone help me
N-damo commented 1 year ago

windows may not work, see https://github.com/nanoporetech/fast-ctc-decode/ or https://github.com/N-damo/CTCBeamSearch