0

How should I go about using a python library that can be downloaded (eg. in the link below)? Haven't used any specific direct written libraries in python before.

http://code.google.com/p/pylevenshtein/

Anuj
  • 6,987
  • 3
  • 22
  • 25
  • 1
    usually, you install the library (` python setup.py install`) and then you can import it. – mgilson Dec 09 '13 at 06:04
  • Thanks @mgilson ...I needed to install python-dev(sudo apt-get install python-dev) before the command could work. – Anuj Dec 09 '13 at 08:35

1 Answers1

4

Preferable way to install new libraries in python is to use pip installer. Install it with the instructions provided in the previous link, and after that you can install new packages by simply typing in console:

pip install <package_name>    

The package you need to install has the name of python-Levenshtein.

aga
  • 27,954
  • 13
  • 86
  • 121