msvc-runtime
raw JSON → 14.44.35112 verified Fri May 01 auth: no python
Installs the Microsoft Visual C++ runtime DLLs (e.g., msvcp140.dll, vcruntime140.dll) into the sys.prefix and Scripts directories. Version 14.44.35112. Released sporadically as needed for MSVC runtime updates.
pip install msvc-runtime Common errors
error ModuleNotFoundError: No module named 'msvc_runtime' ↓
cause The package is not installed or import name misspelled.
fix
Run 'pip install msvc-runtime' and use 'import msvc_runtime' (underscore).
error PermissionError: [WinError 5] Access is denied ↓
cause Trying to install DLLs to a protected directory (e.g., system Python installation) without admin rights.
fix
Re-run your Python script/command as Administrator, or use a virtual environment where you have write permissions.
Warnings
gotcha Do not import 'msvc-runtime' with a hyphen; Python module names cannot contain hyphens. The correct import is 'msvc_runtime'. ↓
fix Use 'import msvc_runtime' instead of 'import msvc-runtime'.
deprecated The function 'msvc_runtime.install()' may be removed in future versions. Prefer installing via pip with the system MSVC redistributable. ↓
fix Consider using the official Microsoft Visual C++ Redistributable installer instead of this package for production environments.
gotcha Running 'msvc_runtime.install()' requires write permissions to sys.prefix. In virtual environments, this will fail silently or raise PermissionError. ↓
fix Run the install as administrator (Windows) or ensure the Python environment is not protected (e.g., not a system-wide install without admin rights).
Imports
- msvc_runtime
import msvc_runtime
Quickstart
import msvc_runtime
msvc_runtime.install()
print('MSVC runtime installed')