Tensorflow-gpuの環境構築
リンク内容
https://www.tensorflow.org/install/source_windows
上記のTensorflowの公式サイトより,最近CUDA10.0に対応した?ことが分かったので,実装しようとしたところ,下記のようなエラーコードが出ました.
大事なのは,おそらく最後のImportErrorだと思っています.
エラーコード
OSError Traceback (most recent call last) ~\Anaconda3\envs\gpu\lib\site-packages\tensorflow\python\platform\self_check.py in preload_check() 74 try: ---> 75 ctypes.WinDLL(build_info.cudart_dll_name) 76 except OSError: ~\Anaconda3\envs\gpu\lib\ctypes\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error) 347 if handle is None: --> 348 self._handle = _dlopen(self._name, mode) 349 else: OSError: [WinError 126] 指定されたモジュールが見つかりません。 During handling of the above exception, another exception occurred: ImportError Traceback (most recent call last) <ipython-input-4-e7cebbfb4338> in <module> 5 import matplotlib.pylab as plt 6 matplotlib.style.use("ggplot") ----> 7 import tensorflow as tf 8 from tqdm import tqdm 9 import cv2 ~\Anaconda3\envs\gpu\lib\site-packages\tensorflow\__init__.py in <module> 26 27 # pylint: disable=g-bad-import-order ---> 28 from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import 29 from tensorflow.python.tools import module_util as _module_util 30 ~\Anaconda3\envs\gpu\lib\site-packages\tensorflow\python\__init__.py in <module> 47 import numpy as np 48 ---> 49 from tensorflow.python import pywrap_tensorflow 50 51 # Protocol buffers ~\Anaconda3\envs\gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module> 28 # Perform pre-load sanity checks in order to produce a more actionable error 29 # than we get from an error during SWIG import. ---> 30 self_check.preload_check() 31 32 # pylint: disable=wildcard-import,g-import-not-at-top,unused-import,line-too-long ~\Anaconda3\envs\gpu\lib\site-packages\tensorflow\python\platform\self_check.py in preload_check() 80 "environment variable. Download and install CUDA %s from " 81 "this URL: https://developer.nvidia.com/cuda-90-download-archive" ---> 82 % (build_info.cudart_dll_name, build_info.cuda_version_number)) 83 84 if hasattr(build_info, "cudnn_dll_name") and hasattr( ImportError: Could not find 'cudart64_100.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Download and install CUDA 10.0 from this URL: https://developer.nvidia.com/cuda-90-download-archive
試してみたこと
Could not find 'cudart64_100.dll'.
とあったので,環境変数Pathに
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\cudart64_100.dll
を新規で追加してみましたが,エラーは変わりませんでした
binファイルにcudart64_100.dllはあるので,どこで間違えているのかわかりません
補足情報
CUDA:10.0
cudnn;CUDAに対応したもの(それぞれのファイルに移動済みです)
Tensorflow_gpu-1.14.0
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。