githubharald / CTCWordBeamSearch

Connectionist Temporal Classification (CTC) decoder with dictionary and language model.
https://towardsdatascience.com/b051d28f3d2e
MIT License
557 stars 160 forks source link

error: subprocess-exited-with-error #71

Closed Lochan9 closed 1 year ago

Lochan9 commented 1 year ago

When I am trying to install "pip install ." I am getting this error help me understand this image

githubharald commented 1 year ago

The package contains C++ code, so you need to install a C++ compiler on your computer.

JOHNATHANHOMER00 commented 1 year ago

Hi I received the same issue, once I installed the latest version of visual studio I received another error I have been trying to troubleshoot the error but when I fix one another pops up, not sure what to do. If there is a specific version of Visual Studio you recommend please let me know. Thanks.

For reference : CMD

vs

tools

filipeas commented 1 year ago

@JOHNATHANHOMER00 I was also having the same problem. I tried a little of everything, but I came to a conclusion that I believe is ideal due to the version of c++ implemented in this project. I did the following:

After that, I restarted the computer and run pip install . inside the project directory and it worked.

image

I hope this helps.

PS: works with python 3.9 too! I tested it yesterday.

githubharald commented 1 year ago

Locally I have Visual Studio 2019 installed, with that one it compiles. When I find some time I will install 2022 to see what's the problem. Until then, please go with 2019.