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

Installation fails on Windows 10 - BuildTools 'LINK : fatal error LNK1104' #78

Open OrianeN opened 2 years ago

OrianeN commented 2 years ago

I've succesfully installed and used python-Levenshtein v0.12.2 last year, but weirdly, trying to install it again on a fresh virtual environment is now failing on my machine.

I have:

Here's what I've done:

virtualenv venv_test_windows
pip install python-Levenshtein

Here's the main error I get at the end of the log:

LINK : fatal error LNK1104: impossible d'ouvrir le fichier 'python38.lib'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\link.exe' failed with exit code 1104

Here's the full stdout: python-Levenshtein-error.txt

All I've found about it is this page: https://qastack.fr/programming/133698/why-does-fatal-error-lnk1104-cannot-open-file-c-program-obj-occur-when-i-c - indicating that whitespaces in the path could be an issue. Yet I find it weird because I haven't changed the path to Visual Studio and this was working before (I have the 0.12.2 installed and working in my usual virtual env).