Anaconda配置.yml来生成一个虚拟环境 Posted on 2021-07-08 | In Anaconda | | Anaconda配置.yml来生成一个虚拟环境 创建新的环境的命令如下: 1conda env create -f environment.yml 其中.yml是需要自己的配置的。 配置格式如下: 123456789name: 虚拟环境名channels: - pytorch - defaults - 还是使用国内地清华源、科大源等dependencies: - 包名=版本号 - pip:(使用pip 进行安装的一些包) - 包名=版本号 例子: 12345678910name: Total3Dchannels: - pytorch - defaultsdependencies: - _libgcc_mutex=0.1 - blas=1.0 - pip: - cycler==0.10.0 - jellyfish==0.8.2 Hobby lead creation, technology change world. Post author: StriveZs Post link: www.strivezs.com/2021/07/08/Anaconda%E9%85%8D%E7%BD%AE.yml%E6%9D%A5%E7%94%9F%E6%88%90%E4%B8%80%E4%B8%AA%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83/ Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 3.0 unless stating additionally.