Install as an editable library#
Tracklib supports Python 3.8 and later.
Dependencies#
Tracklib depends on the following Python packages:
numpy – Provides efficient array operations.
matplotlib – Used for colormaps and 2D plotting.
progressbar2 – Displays the progress of long-running operations.
rtree – Python bindings for libspatialindex, used for spatial indexing.
requests – Used to query HTTP web services.
Option 1: Installing from GitHub#
To install the latest development version directly from GitHub, run:
pip install -U git+https://github.com/umrlastig/tracklib.git@main
Alternatively, you can clone the repository with git and install it with pip.
git clone https://github.com/umrlastig/tracklib.git
cd tracklib
pip install -e .
Option 2: Installing in a New Virtual Environment#
Clone the GitHub repository:
git clone https://github.com/umrlastig/tracklib.git
cd tracklib
Create and activate a new virtual environment:
[sudo apt-get install python3-venv]
python3 -m venv tracklibenv
source tracklibenv/bin/activate
Upgrade the packaging tools:
pip install --upgrade pip
pip install wheel
pip install setuptools
pip install twine
Install Tracklib in editable mode:
pip install -e .
Deactivate the virtual environment when you’re done:
deactivate