当我在新的虚拟环境中运行
conda install tensorflow-gpu
时,conda 给出了将要安装的软件包列表,但是没有 CUDNN 或 cudatoolkit 软件包,而这是我期望的,并且其他人已经得到。我期望的输出如此问题(Is it still necessary to install CUDA before using the conda tensorflow-gpu package?),但实际上我得到的是这样的:
编辑: 我通过运行以下命令成功地使其工作了
conda create -n tf-gpu python=3.7 anaconda
然后是
conda install tensorflow-gpu
这样做后,它自己安装了所有的 cudnn 库,我能够使用 GPU 运行 tensorflow。然而,由于某种原因它正在安装 tensorflow 1.14 版本,而我需要 2.x 版本,有谁知道原因吗?