tensorflow-gpu=2.4.0
1、tensorflow2-gpu环境的创建与激活
Win+R启动cmd,在命令提示符内输入以下命令:
conda create –n tensorflow2-gpu python=3.7
activate tensorflow2-gpu
2、tensorflow2-gpu库的安装
由于我们所有的操作都要在对应环境中进行,所以在进行库的安装前需要先激活环境。
pip install tensorflow-gpu2.4.0
scipy1.4.1
numpy1.19.2
matplotlib3.2.1
opencv_python4.2.0.34
tensorflow_gpu2.4.0
tqdm4.46.1
Pillow8.2.0
h5py==2.10.0