skillfed

conda-inject

Helper functions for injecting a conda environment into the current python environment (by modifying sys.path, without actually changing the current python environment).

conda-inject v1.3.2 111.9K downloads/30d#12,393 on PyPI
License unclear DORMANT released

What it is and what it does

conda-inject is a utility for dynamically loading packages from a conda environment into your current Python process without activating that environment. It works by manipulating sys.path to prepend the target environment's site-packages directory, making its packages importable as if they were installed in the active environment. This is useful when you need to access packages from a specific conda environment without the overhead or side effects of full environment activation.

The package depends only on pyyaml and supports Python 3.9, 3.10, 3.11, and 3.12. It is currently dormant—last release was 2024-05-27—so it receives no active maintenance. The license is undeclared, which may be a concern for some use cases.

Use it for:

  • Load packages from an isolated conda environment in a script without activating it.
  • Dynamically switch between multiple conda environments' packages within a single Python session.
  • Test compatibility of code against packages from a specific conda environment without environment switching overhead.
  • Integrate conda-managed dependencies into a containerized or CI/CD workflow where full activation is impractical.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Injects a conda environment's packages into the current Python process by modifying sys.path, without changing the active conda environment.

Yes, if you need lightweight runtime injection of conda packages and can tolerate dormant maintenance. The low install friction and lack of vulnerabilities make it safe to try. However, verify the undeclared license for your use case, and be aware that no active maintenance means no bug fixes or updates. Consider it a stable utility rather than an actively developed tool.

Install

conda-inject on PyPI

pip

pip install conda-inject

uv

uv add conda-inject

poetry

poetry add conda-inject

Installing conda-inject

Before you install

Low install friction with a single runtime dependency (pyyaml). Package is dormant—no releases recorded in recent years—so expect no active maintenance or bug fixes.

License in practice

License status is unclear; no SPDX identifier or raw license text is available. Verify the actual license before use in proprietary or copyleft-sensitive contexts.

Quickstart

pip install conda-inject

import conda_inject
conda_inject.inject_conda_env('/path/to/conda/env')

Requires Python 3.9 or later. The package modifies sys.path at runtime; ensure the target conda environment path is valid and accessible.

Verify before relying

  • What specific functions does the package export and what are their signatures?
  • Does the package handle conda environment discovery, or must the path be provided explicitly?
  • Are there known edge cases or limitations when injecting multiple environments or conflicting package versions?

Package facts

License not declared (unclear)
Python support supports the current Python release (<4.0,>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 1 — pyyaml
Maintenance dormant — 809 days since the last release
First released
Downloads 111,859/month — #12,393 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: conda_inject-1.3.2-py3-none-any.whl

Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9

Tags

conda environment path injectionsys.path conda packagesload conda packages runtimeinject conda environment pythonconda environment without activationdynamic conda package loading
conda-integrationsys-path-manipulation

More Build Tools packages