Skip to content

Windows DLL loading error for PyTorch due to missing Visual C++ Redistributable – suggest improved user guidance or system dependency management #18413

Description

@Virtuoso461

Summary

When using uv to manage a Python project that depends on PyTorch on Windows, the import of torch fails with an OSError: [WinError 1114] indicating that c10.dll (or one of its dependencies) failed to initialize. This is caused by the lack of the required Visual C++ Redistributable on the system. Unlike Conda, which automatically installs such system-level dependencies, uv does not handle them, leading to a confusing error for users who expect a seamless environment setup.

Platform

Operating System: Windows 11 Pro 23H2 (build 22631.1), x86_64 Architecture: 64-bit

Version

uv 0.10.9 (f675560 2026-03-06)

Python version

Python 3.11.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to existing functionalitywishNot on the immediate roadmap

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions