创建环境

conda create –n  tensorflow-python3.6 python=3.6

删除环境

conda remove –n tensorflow-python3.6 –all

重命名环境

1 clone环境

conda create –n tf –clone tensorflow-python3.6

2 删除旧环境

conda remove –n tensorflow-python3.6 –all

查询现有环境

conda info –e

或者

conda env list

激活 环境

source active 环境名称

返回默认环境

source deactive 环境名称

导出环境

conda env export > environment.yaml

用配置文件创建新的虚拟环境

conda env create –f environment.yaml

切换到base环境

acticate

列出当前环境的所有包

conda list

安装requests的包

conda install requests

conda 卸载requests包

conda remove requests

更新环境

conda update requests

相关文章:

  • 2021-11-30
  • 2022-01-29
  • 2022-12-23
  • 2021-04-19
  • 2021-06-22
  • 2022-01-16
  • 2021-06-29
猜你喜欢
  • 2021-12-04
  • 2021-05-24
  • 2021-07-04
  • 2021-06-30
  • 2022-02-12
  • 2021-07-30
  • 2022-01-12
相关资源
相似解决方案