我想将pytorch与tensorboard一起使用。我每晚都安装pytorch 1.1和tb。我有cuda 10.1。
在cmd中输入张量板后:
tensorboard --logdir=runs
我遇到导入错误:
Traceback (most recent call last):
File "C:\Users\10485\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\platform\self_check.py", line 75, in preload_check
ctypes.WinDLL(build_info.cudart_dll_name)
File "h:\anaconda\envs\ppp\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 "h:\anaconda\envs\ppp\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "h:\anaconda\envs\ppp\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "H:\Anaconda\envs\ppp\Scripts\tensorboard.exe\__main__.py", line 5, in <module>
File "C:\Users\10485\AppData\Roaming\Python\Python36\site-packages\tensorboard\main.py", line 36, in <module>
import tensorflow as tf
File "C:\Users\10485\AppData\Roaming\Python\Python36\site-packages\tensorflow\__init__.py", line 22, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:\Users\10485\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\10485\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\pywrap_tensorflow.py", line 30, in <module>
self_check.preload_check()
File "C:\Users\10485\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\platform\self_check.py", line 82, in preload_check
% (build_info.cudart_dll_name, build_info.cuda_version_number))
ImportError: Could not find 'cudart64_90.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Download and install CUDA 9.0 from this URL: https://developer.nvidia.com/cuda-toolkit
除了下载cuda9之外,还有其他解决方案吗?