Feature Request: Shared Dependency Management Across Tools
Pinokio appears to create and manage a separate Python environment (venv/Conda or similar) for each installed tool. While this provides good isolation, it can also lead to significant duplication of dependencies.
For example, if several tools require the same libraries such as PyTorch, NumPy, Transformers, OpenCV, etc., each tool may end up installing its own copy. This can consume a large amount of disk space and also make installation and updates unnecessarily slow.
Proposed feature
I would like to suggest a shared dependency management system for Pinokio.
The idea would be to keep tools isolated at the application level while allowing commonly used dependencies to be installed and managed only once in a shared environment or dependency store.
For example:
Pinokio ├── Shared Dependencies │ ├── PyTorch │ ├── NumPy │ ├── Transformers │ ├── OpenCV │ └── ... │ ├── Tool A │ └── Tool-specific dependencies │ ├── Tool B │ └── Tool-specific dependencies │ └── Tool C └── Tool-specific dependencies
When installing a new tool, Pinokio could:
Detect which dependencies are already available in the shared store. Reuse compatible versions instead of downloading/installing them again. Install only tool-specific or incompatible dependencies locally. Handle version conflicts automatically, keeping separate versions only when necessary. Keep track of which tools depend on each shared package so that unused dependencies can be safely cleaned up.
An implementation could potentially use a content-addressable/package cache, shared environments, hard links/symlinks, or another mechanism rather than literally putting every tool into the same Python environment.
The important part is that identical or compatible dependencies should ideally only consume disk space once, while preserving as much isolation and reproducibility as possible.
This would be particularly valuable for AI/ML tools, where packages such as PyTorch and other large dependencies can take several gigabytes and are frequently shared across many applications.
Ideally, Pinokio could expose this through a simple "Shared Dependencies" or "Dependency Store" management interface, showing which packages are shared, which tools use them, and how much disk space is being saved.
This could significantly reduce disk usage, installation times, and redundant downloads while retaining the benefits of per-tool environments.
Source: pinokiocomputer/pinokio