Search code examples
pythonpipenv

pipenv install error for certain python libraries


My python project depends on a module named levenshtein which is best installed using

sudo apt install python3-levenshtein

I generally use pipenv for all my projects but running below command fails in this case:

pipenv install levenshtein

This causes issues in smooth production deployment. How do I get pipenv to install this/such libraries?

Note - However, install other libraries (such as flask) succeeds using pipenv install using same method.

Screenshot of levenshtein library install error Screenshot of levenshtein library install error:


Solution

  • I think you've to use this command.

    pipenv install python-Levenshtein