2.1. Install guide

Before you can use nvector, you’ll need to get it installed. This guide will guide you through a simple installation that’ll work while you walk through the introduction.

2.1.1. Install nvector

If you have pip installed and are online, then simply type:

$ pip install nvector

to get the lastest stable version. Using pip also has the advantage that all requirements are automatically installed.

You can download nvector and all dependencies to a folder “pkg”, by the following:

$ pip install –download=pkg nvector

To install the downloaded nvector, just type:

$ pip install –no-index –find-links=pkg nvector

2.1.2. Verifying installation

To verify that nvector can be seen by Python, type python from your shell. Then at the Python prompt, try to import nvector:

>>> import nvector as nv
>>> print(nv.__version__)
0.7.7

To test if the toolbox is working correctly paste the following in an interactive python session:

import nvector as nv
nv.test('--doctest-modules')

or

$ py.test –pyargs nvector –doctest-modules

at the command prompt.