{"id":294,"hash":"652431c58e3dd1ecba0bd530808df94aa2797dfe79aed36c08b5c30155c74cd6","pattern":"On Windows, running &quot;import tensorflow&quot; generates No module named &quot;_pywrap_tensorflow&quot; error","full_message":"On Windows, TensorFlow reports either or both of the following errors after executing an import tensorflow statement:\n\nNo module named \"_pywrap_tensorflow\"\nDLL load failed.","ecosystem":"pypi","package_name":"tensorflow","package_version":null,"solution":"The problem was the cuDNN Library for me - for whatever reason cudnn-8.0-windows10-x64-v6.0 was NOT working - I used cudnn-8.0-windows10-x64-v5.1 - ALL GOOD!\n\nMy setup working with Win10 64 and the Nvidia GTX780M:\n\nBe sure you have the lib MSVCP140.DLL by checking your system/path - if not get it here\nRun the windows installer for python 3.5.3-amd64 from here - DO NOT try newer versions as they probably won't work \nGet the cuDNN v5.1 for CUDA 8.0 from here - put it under your users folder or in another known location (you will need this in your path)\nGet CUDA 8.0 x86_64 from here\nSet PATH vars as expected to point at the cuDNN libs and python (the python path should be added during the python install)\nMake sure that \".DLL\" is included in your PATHEXT variable\nIf you are using tensorflow 1.3 then you want to use cudnn64_6.dll github.com/tensorflow/tensorflow/issues/7705\n\nIf you run Windows 32 be sure to get the 32 bit versions of the files mentioned above.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/42011070/on-windows-running-import-tensorflow-generates-no-module-named-pywrap-tenso","votes":91,"created_at":"2026-04-19T04:41:46.113760+00:00","updated_at":"2026-04-19T04:51:57.735602+00:00"}