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
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