If you run local AI apps from source - ComfyUI, llama-cpp-python, training scripts or speech tools - you'll need somewhere to put their Python packages, and the two names you'll meet most are uv and conda. They solve the same problem in different ways: uv is a fast installer for Python packages from PyPI and PyTorch's own indexes, while conda installs packages from its own ecosystem, which reaches beyond Python. Here we compare them on what matters for an AI PC, using conda through the community Miniforge installer.
At a glance
| uv | conda (via Miniforge) |
|---|
Made by | Astral (open source, written in Rust) | conda community; Miniforge is maintained by conda-forge |
Windows install | PowerShell script, WinGet, Scoop or pip | Windows installer (Windows 10 or later) |
Installs Python versions | Yes, uv python install or on demand | Yes, per environment (python=3.13) |
Where packages come from | PyPI, plus PyTorch's indexes | conda-forge channel |
Non-Python libraries | Not its job | Yes, through conda packages |
PyTorch GPU build selection | --torch-backend=auto in uv pip
| Install with pip inside the environment, or use conda-forge builds |
Recreating an environment | Universal lockfile for uv projects | environment.yml files |
Installing and getting started
uv is a single program. On Windows you can install it with Astral's PowerShell script or winget install --id=astral-sh.uv -e, and it can update itself with uv self update if you used the standalone installer. It doesn't need Python to be installed first.
Miniforge installs the conda and mamba commands with conda-forge set as the default and only channel. Its README points out that, with the Windows installer's default choices, the commands are only available in the "Miniforge Prompt" until you run conda init, and it recommends conda config --set auto_activate false so the base environment isn't switched on in every terminal.
Winner: uv, for being one small download that works from any terminal straight away.
Creating environments and choosing Python versions
Both tools can give each app its own Python version, which matters because AI apps are picky: ComfyUI's README recommends Python 3.12 to 3.14, for example.
With uv, uv venv --python 3.12 creates a .venv folder inside the app's directory and downloads Python 3.12 if it isn't already available. With conda, conda create --name comfy python=3.12 creates a named environment that you switch to with conda activate comfy, and conda env list shows them all.
The practical difference is location. uv environments live in each project folder, so deleting the folder removes the environment too. Conda keeps named environments centrally, which is handy if you want to reuse one environment across several scripts.
Winner: draw. Both handle multiple Python versions well; choose by whether you prefer per-folder or named environments.
PyTorch and your graphics card
This is the most important round for local AI. PyTorch's Get Started page says pip is the supported package manager for its binaries, and the uv documentation explains why getting the right one is fiddly: PyTorch publishes separate builds for CPU, CUDA, ROCm and Intel GPUs on its own indexes, and the wheels on PyPI are CPU-only for Windows.
uv has a dedicated answer. In its pip interface, uv pip install torch --torch-backend=auto checks your installed CUDA driver, AMD GPU and Intel GPU and picks the most compatible index, falling back to CPU-only builds if there's no GPU. You can also name one, such as --torch-backend=cu130. For uv projects, its PyTorch guide shows how to pin the index in pyproject.toml.
With conda, you'd normally run PyTorch's own pip command inside the conda environment, or use the community-maintained PyTorch builds on conda-forge. The pixi documentation, which uses the same conda-forge packages, notes that CUDA builds there depend on declaring the CUDA driver capability you're targeting.
Winner: uv. Its --torch-backend option detects your GPU and installs PyTorch's official wheels to match, with no index URL to look up. Our uv how-to walks through it step by step.
Non-Python dependencies
Some AI tools need compiled libraries or command-line programs that aren't Python packages. This is conda's home ground: conda packages can contain software written in other languages, and the pixi README notes that the conda ecosystem supports languages including Python, C++ and R. uv installs Python packages, so anything else has to come from Windows installers, WinGet or your Linux distribution.
Winner: conda, if an app's instructions depend on conda packages.
Speed and disk space
Astral claims uv is 10-100x faster than pip and says it uses a global cache to deduplicate packages across environments, which can save space when several AI apps each want the same large libraries. These are the project's own claims.
Winner: not scored without independent measurements, though uv's design is explicitly built around speed.
Reproducing a setup
uv projects get a universal lockfile, and uv lock and uv sync rebuild the same environment elsewhere. For quick installs with uv pip, you're relying on the app's own requirements file. Conda describes an environment in an environment.yml file; conda create --file environment.yml builds it and conda env update --file environment.yml --prune brings an existing one into line.
Winner: uv for its lockfile, though both can rebuild an environment from a file.
Licensing
Both uv and Miniforge are free to download. If you use conda at work, though, be aware of Anaconda's own terms: its Terms of Service say use of the Anaconda platform is free on behalf of a for-profit organisation with 200 or fewer total employees or contractors, and that larger for-profit organisations need a paid Business plan. Miniforge is configured to use conda-forge as its only channel rather than Anaconda's, but check your employer's policy before installing on a work PC.
Winner: uv, simply because there's nothing extra to check.
Which should you choose?
Choose uv if:
Your AI apps publish pip or requirements.txt install instructions, as ComfyUI does
You want PyTorch to match your graphics card without hunting for the right index URL
You'd like each app's environment to live inside its own folder
Choose conda (via Miniforge) if:
An app's official instructions are written for conda
It needs compiled or non-Python libraries that pip can't install
You prefer named environments you can reuse across several projects
There are other options too; our guide to the best Python environment managers for local AI also covers Pixi and Python's built-in venv. If PyTorch still can't see your GPU after setup, see how to fix "CUDA not available" in PyTorch.