Skip to content
Richard Jones edited this page Jan 3, 2017 · 2 revisions

Installation

As this is a developing project, it is recommended that the library be installed within a http://www.virtualenv.org/en/latest/index.html so that handling versions and updates will be easier.

Installation methods

Create a virtualenv and install the library within it

$ virtualenv MYPROJECTSNAME                # Create a virtualenv
$ source MYPROJECTSNAME/bin/activate       # Use the virtualenv

$ easy_install sword2                      # Install the package

Install the package system-wide using setuptools

$ sudo apt-get install python-setuptools  # if you haven't already (Ubuntu/Debian)
$ sudo easy_install sword2

Install the package from source

$ hg clone http://bitbucket.org/beno/python-sword2
$ cd python-sword2

Then, either from within a virtualenv or otherwise:

$ python setup.py install       # sudo, if installing system-wide

[BasicUsage](Next:How to use it)