python-Levenshtein icon indicating copy to clipboard operation
python-Levenshtein copied to clipboard

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

Open OrianeN opened this issue 3 years ago • 0 comments

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:

  • Windows 10
  • Python 3.8.6
  • Visual Studio Build Tools 2019

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).

OrianeN avatar Jan 03 '22 13:01 OrianeN