ztane / python-Levenshtein

The Levenshtein Python C extension module contains functions for fast computation of Levenshtein distance and string similarity
GNU General Public License v2.0
1.26k stars 155 forks source link

Error in installation with pip [Windows] #45

Open RaXorX opened 5 years ago

RaXorX commented 5 years ago

I am on windows 10 x64. Recently was trying my hand on a tool called videocr. It requires the installation of levenshtein, but apparently it only checks and downloads the 0.12 version. Which apparently gives me an error similar to https://github.com/ztane/python-Levenshtein/issues/44 and https://github.com/ztane/python-Levenshtein/issues/42

Can't say if they are related or not. Original issue on videocr is here. https://github.com/apm1467/videocr/issues/8 and here is the error which it throws https://pastebin.com/ksSVw1Wa

I tried downloading the VC redist files for VS2015/2017/2019 since it says it required VC++ 14.0 but it had no effect.

offthewoll commented 4 years ago

The instructions at https://www.scivision.dev/python-windows-visual-c-14-required/ worked for me.

b-long commented 4 years ago

Thanks @offthewoll for the tip!

As an alternative approach, would this do the trick?

choco install visualstudio2019buildtools
choco install microsoft-visual-cpp-build-tools
offthewoll commented 4 years ago

I imagine that would work too but that involves Chocolatey being a dependency of a dependency (vsbuildtools) of a dependency (levenshtein) in order to use Fuzzywuzzy. @b-long