2.1. Install guide

Before you can use envector, 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 envector

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

$ pip install envector

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

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

$ pip install –download=pkg envector

To install the downloaded envector, just type:

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

2.1.2. Verifying installation

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

>>> import envector as nv
>>> print(nv.__version__)
0.3.1

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

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

or

$ pdm run pytest

at the command prompt.