LingPy

This documentation is for version 2.0.dev, which is not released yet.

Installation InstructionsΒΆ

Since we are still working on the first official release of LingPy-2.0 for Python3, an automatic installation with a setup.py or tools like easy_install is currently not supported. To use the library in this pre-setup.py stage, git clone the library from https://github.com/lingpy/lingpy and put the library’s lingpy/lingpy folder in your path (or Python path). Alternatively, you can make a symlink in your Python3 site-packages folder called lingpy and link it to lingpy/lingpy. For example:

  1. Start the Python interpreter (make sure you are using Python3):
$ python
  1. At the prompt, locate the site-packages folder:
>>> import sys
>>> print(sys.path)
['', '/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2', '/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages']
  1. Create the symlink (you may need sudo):
ln -s /path/to/lingpy/lingpy /path/to/site-packages/symlink
  1. Test in interpreter:
$ python
>>> import lingpy

Another, simple way, to use LingPy is to include it in your sys-path just before you call the library:

>>> import sys
>>> sys.path.append("path_to_lingpy")

This Page