Skip to main content

Requirements

The UCX DSA package requires:
  • Python 3.7 or higher
  • Dependencies:
    • networkx - For graph visualization features
    • matplotlib - For drawing and plotting data structures
Dependencies are automatically installed when you install the package via pip.

Installing UCX DSA

1

Install via pip

The easiest way to install UCX DSA is using pip:
pip install ucxdsa
This will install the latest version of the package and all required dependencies.
2

Verify installation

After installation, verify that the package is installed correctly:
import dsa
print(dsa.version)
The first method will print the version number (e.g., 2026.02.13), while the second shows detailed package information.
3

Start using the package

Import the data structures you need:
from dsa.stack import Stack
from dsa.queue import Queue
from dsa.array import Array, DynamicArray
from dsa.graph import Graph
You’re now ready to use UCX DSA in your projects!

Updating UCX DSA

To update to the latest version of the package:
pip install --upgrade ucxdsa
This will download and install the newest version, replacing your current installation.
The package uses date-based versioning (YYYY.MM.DD format). Check the revision history to see what’s new in each release.

Checking your version

There are multiple ways to check which version of UCX DSA you have installed:
import dsa
print(dsa.version)
# Output: 2026.02.13

Version format

The package uses date-based semantic versioning in the format YYYY.MM.DD:
  • 2026.02.13 - Released on February 13, 2026
  • 2025.12.24 - Released on December 24, 2025
  • 2025.12.09 - Released on December 9, 2025
This makes it easy to see how recent your installed version is.

Installation troubleshooting

If you get an error about Python version compatibility, make sure you’re using Python 3.7 or higher:
python --version
If you have multiple Python versions installed, you may need to use pip3 instead of pip:
pip3 install ucxdsa
If you encounter permission errors during installation, you can install for your user only:
pip install --user ucxdsa
Alternatively, use a virtual environment (recommended for course work):
python -m venv myenv
source myenv/bin/activate  # On Windows: myenv\Scripts\activate
pip install ucxdsa
If the package installed successfully but you can’t import it:
  1. Make sure you’re using the correct Python interpreter
  2. Try restarting your Python REPL or Jupyter kernel
  3. Verify the package is installed: pip list | grep ucxdsa

Next steps

Now that you have UCX DSA installed, check out the Quickstart guide to learn how to use the package with real code examples.

Build docs developers (and LLMs) love