激活虚拟环境如ptuning,

conda activate ptuning

导出conda虚拟环境到yml文件中

conda env export > environment_ptuning.yml

通过yml安装新环境  

conda env create -f environment_ptuning.yml

 

导出虚拟环境ptuning中pip的安装包

pip freeze>requirements.txt

在新虚拟环境中安装根据requirements.txt中包列表:

pip install -r requirements.txt

  

  

  

 

相关文章:

  • 2022-01-12
  • 2021-11-11
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-24
  • 2022-01-10
  • 2021-04-13
  • 2022-12-23
相关资源
相似解决方案