{"id":24079,"library":"msvc-runtime","title":"msvc-runtime","description":"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.","status":"active","version":"14.44.35112","language":"python","source_language":"en","source_url":"https://github.com/...","tags":["msvc","visual-c++","runtime","windows","dll"],"install":[{"cmd":"pip install msvc-runtime","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"The package name uses an underscore, not a hyphen. You cannot import with a hyphen.","symbol":"msvc_runtime","correct":"import msvc_runtime"}],"quickstart":{"code":"import msvc_runtime\nmsvc_runtime.install()\nprint('MSVC runtime installed')","lang":"python","description":"Installs the MSVC runtime DLLs into the Python environment."},"warnings":[{"fix":"Use 'import msvc_runtime' instead of 'import msvc-runtime'.","message":"Do not import 'msvc-runtime' with a hyphen; Python module names cannot contain hyphens. The correct import is 'msvc_runtime'.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider using the official Microsoft Visual C++ Redistributable installer instead of this package for production environments.","message":"The function 'msvc_runtime.install()' may be removed in future versions. Prefer installing via pip with the system MSVC redistributable.","severity":"deprecated","affected_versions":">=14.44"},{"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).","message":"Running 'msvc_runtime.install()' requires write permissions to sys.prefix. In virtual environments, this will fail silently or raise PermissionError.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install msvc-runtime' and use 'import msvc_runtime' (underscore).","cause":"The package is not installed or import name misspelled.","error":"ModuleNotFoundError: No module named 'msvc_runtime'"},{"fix":"Re-run your Python script/command as Administrator, or use a virtual environment where you have write permissions.","cause":"Trying to install DLLs to a protected directory (e.g., system Python installation) without admin rights.","error":"PermissionError: [WinError 5] Access is denied"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}