1. 创建虚拟环境

conda create -n tf2.3 python=3.8

2. 进入虚拟环境

conda activate tf2.3

3. 安装 CUDA 以及 cuDNN

conda install cudatoolkit=10.1
conda install cudnn=7.6

4. 安装 Tensorflow2.3

pip install tensorflow==2.3

或者

pip install --upgrade tensorflow

5. 参考链接

  1. https://tensorflow.google.cn/install/pip?hl=zh_cn
  2. https://tensorflow.google.cn/install/gpu?hl=zh_cn
最后修改:2023 年 08 月 26 日
如果觉得我的文章对你有用,请随意赞赏