Installation & Testing
Install the current release of Netgraph with:
pip install netgraph
To upgrade to a newer version, use the --upgrade
flag:
pip install --upgrade netgraph
If you do not have permission to install software systemwide, you can install into your user directory using the --user
flag:
pip install --user netgraph
If you are using (Ana-)conda (or mamba), you can also obtain netgraph from conda-forge:
conda install -c conda-forge netgraph
Alternatively, you can manually download netgraph from GitHub or PyPI. To install one of these versions, unpack it and run the following from the top-level source directory using the terminal:
pip install .
Or without pip:
python setup.py install
Some of the examples in the documentation use additional libraries. These can be installed with:
pip install netgraph[docs]
For automated testing, install the additional dependencies required for testing using:
pip install netgraph[tests]
The full test suite can then be executed by running the following from the top-level source directory using the terminal:
pytest