安装tensorflow虚拟环境

安装tensorflow虚拟环境

  1. conda create -n tf2-2 python=3.7
  2. conda activate tf2-2
  3. pip install tensorflow==2.2.0
  4. pip install keras==2.3.1

安装pytorch虚拟环境

  1. conda create -n pytorch python=3.6
  2. conda activate pytorch
  3. conda install pytorch torchvision torchaudio -c pytorch 或者

    pip3 install torch torchvision torchaudio

原文地址:https://www.cnblogs.com/xiaowa/p/15397795.html