Skip to content

Cpp installation needed for python-Levenshtein #65

@maximecharriere

Description

@maximecharriere

In manual installation, after running the command pip3 install -r requirements.txt, you will get the following issue related python-Levenshtein, because it needs c++ compiler to be installed. You will get the following error:

On windows

Microsoft Visual C++ 14.0 or greater is required.
Full output:

Building wheels for collected packages: python-Levenshtein
  Building wheel for python-Levenshtein (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for python-Levenshtein (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build\lib.win-amd64-cpython-313\Levenshtein
      copying Levenshtein\StringMatcher.py -> build\lib.win-amd64-cpython-313\Levenshtein
      copying Levenshtein\__init__.py -> build\lib.win-amd64-cpython-313\Levenshtein
      running egg_info
      writing python_Levenshtein.egg-info\PKG-INFO
      writing dependency_links to python_Levenshtein.egg-info\dependency_links.txt
      writing namespace_packages to python_Levenshtein.egg-info\namespace_packages.txt
      writing requirements to python_Levenshtein.egg-info\requires.txt
      writing top-level names to python_Levenshtein.egg-info\top_level.txt
      reading manifest file 'python_Levenshtein.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '*pyc' found anywhere in distribution
      warning: no previously-included files matching '*so' found anywhere in distribution
      warning: no previously-included files matching '.project' found anywhere in distribution
      warning: no previously-included files matching '.pydevproject' found anywhere in distribution
      adding license file 'COPYING'
      writing manifest file 'python_Levenshtein.egg-info\SOURCES.txt'
      copying Levenshtein\_levenshtein.c -> build\lib.win-amd64-cpython-313\Levenshtein
      copying Levenshtein\_levenshtein.h -> build\lib.win-amd64-cpython-313\Levenshtein
      running build_ext
      building 'Levenshtein._levenshtein' 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/

On Linux

unable to execute 'gcc': No such file or directory.
See issue #39 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions