Tensorflow on Windows10
Post date: 2017/11/08 11:20:41
- Install python 3.6.3
- add Python to environment variables
pip3 install --upgrade tensorflow
- test
$ python
>>> import tensorflow as tf
>>> import tensorflow as tf Traceback (most recent call last): File "C:\WinApps\Python363\lib\site-packages\tensorflow\python\platform\self_check.py", line 47, in preload_check ctypes.WinDLL(build_info.msvcp_dll_name)
File "C:\WinApps\Python363\lib\ctypes\__init__.py", line 348, 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 "", line 1, in
File "C:\WinApps\Python363\lib\site-packages\tensorflow\__init__.py", line 24, in
from tensorflow.python import * File "C:\WinApps\Python363\lib\site-packages\tensorflow\python\__init__.py", line 49, in
from tensorflow.python import pywrap_tensorflow File "C:\WinApps\Python363\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 30, in
self_check.preload_check() File "C:\WinApps\Python363\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