PythonのLevenshteinパッケージのインストール時のエラー

最近Pythonプログラミングをメインでやってますが、文字間の近さを図るためにLevenshtein距離を使うことにしました。

PythonではPython-Levenshteinというパッケージが良さそうなので読み込んだところエラー発生!

依存関係としてwheelが必要になるがどうもこれが合わないらしい。

Failed to build python-Levenshtein
DEPRECATION: Could not build wheels for python-Levenshtein which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.

もう少し調べるとこのPython-LevenshteinのフォークにPython-Levenstein-Wheelsなるパッケージがあり、そのあたりのトラブルもまとめて面倒見てくれるようだ。

これを使ったところ一発でOK。使い方も全く同じです。こういったのはありがたいですね。