系統Windows7
剛裝的Python3.5和TensorFlow1.4
裝完后試驗一下,輸入import tensorflow as tf報了一堆錯誤如下
>>> import tensorflow as tf
Traceback (most recent call last):
File "C:\Users\wujiwen\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\platform\self_check.py", line 47, in preload_check
ctypes.WinDLL(build_info.msvcp_dll_name)
File "C:\Users\wujiwen\AppData\Local\Programs\Python\Python35\lib\ctypes\__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模塊。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import tensorflow as tf
File "C:\Users\wujiwen\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
from tensorflow.python import *
File "C:\Users\wujiwen\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\wujiwen\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 30, in <module>
self_check.preload_check()
File "C:\Users\wujiwen\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\platform\self_check.py", line 55, in preload_check
% build_info.msvcp_dll_name)
ImportError: Could not find 'msvcp140.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. You may install this DLL by downloading Visual C++ 2015 Redistributable Update 3 from this URL: https://www.microsoft.com/en-us/download/details.aspx?id=53587
>>>
裝的程序中沒有任何錯誤,大神幫我看看這是什么原因造成的錯誤,怎么解決
uj5u.com熱心網友回復:
叫你裝vc++2015的運行環境包,連網址都給你了uj5u.com熱心網友回復:
搞tensorflow真心還是linux好。裝個centos也不困難,但比window省心太多。uj5u.com熱心網友回復:
安裝了并且修改了環境變數也是不行的
uj5u.com熱心網友回復:
win坑太多了轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/66737.html
標籤:人工智能技術
