base环境中的TensorFlow版本为2.0,已经安装了cuda10.1。在虚拟环境tf1.4中,TensorFlow版本为1.4,import tensorflow as tf
报错显示
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
解决方法是:
在虚拟环境tf1.4
中,运行
conda install cudatoolkit=10.0