Installation
Requirements
Python >= 3.9
NetworkX >= 3.0
PyYAML >= 6.0
jsonschema >= 4.0
Optional dependencies for visualization: * matplotlib >= 3.0
Installation Methods
Using pip (Editable Install)
From the repository root:
# First activate your conda environment (if using conda)
conda activate <your-env>
# Then install in editable mode
pip install -e .
This makes the ndtools package importable anywhere in that environment.
Using pip (Regular Install)
pip install ndtools-duco
Verify Installation
Check that the package is properly installed:
python -c "import ndtools; print(ndtools.__version__)"
Note the name of the package for import is ndtools, while the pip package name is ndtools-duco.
Development Installation
For development work, you may want to install additional dependencies:
# Install from the repo
cd <path-to-repo>
pip install -e .
Environment Setup
For a clean environment setup:
# Create new conda environment
conda create -n network-datasets python=3.12
conda activate network-datasets
# Install the package
pip install -e .
# Verify installation
python -c "import ndtools; print('Installation successful!')"