If that is the case, then you need to install the Visual C/C++ 9.0, 10.0, or 11.0 runtime library. Please verify that the files jnbshare.dll, jnbsharedmem.dll, and jnbjavaentry2.dll are in the GAC or are in the folder pointed to by the dotNetSide.appBase property. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable.In Java-to-.NET projects, you get the following exception message:Ĭouldn’t start up. ImportError: Could not find 'msvcp140.dll'. OSError: %1 is not a valid Win32 applicationĭuring handling of the above exception, another exception occurred:įile "C:\Python36\lib\site-packages\tensorflow_ init.py", line 24, inįile "C:\Python36\lib\site-packages\tensorflow\python_ init.py", line 49, inįrom tensorflow.python import pywrap_tensorflowįile "C:\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 30, in Logsįile "C:\Python36\lib\site-packages\tensorflow\python\platform\self_check.py",įile "C:\Python36\lib\ctypes_ init_.py", line 348, in init I checked that the dll files are present in the directory that is in the PATH variable and also installed the Visual C++ Redistributable as mentioned. While importing tensorflow in python interpreter an OSError occurs and while handling the exception ImportError also occurs which gives the message that 'Couldnot find msvcp140.dll'. I am using python 3.6 and have successfully installed tensorflow 1.7 via pip3 command. Exact command to reproduce: import tensorflow as tf. GCC/Compiler version (if compiling from source): NA.Bazel version (if compiling from source): NA.TensorFlow version (use command below): 1.5, 1.6, 1.7.TensorFlow installed from (source or binary): binary.OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Window 7.Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |