Skip to content

Instantly share code, notes, and snippets.

@Overdrivr
Overdrivr / check.py
Created March 25, 2019 08:27
Check Microsoft Visual C++ redist. is properly installed for Tensorflow
from ctypes.util import find_library
import ctypes
msvcp140_path = find_library("msvcp140.dll")
if msvcp140_path is None:
raise Exception('msvcp140.dll not found on system')
# Check DLL is found in system32 folder and not somewhere else
print(msvcp140_path)