在OSX上创建conda环境时出错

时间:2017-11-10 01:45:17

标签: anaconda conda

这在过去对我有用,但是从yml文件创建一个conda环境对我来说不再适用了。知道怎么解决吗?我有conda 4.3.29。

尝试1:

conda create --file CondaEnvironment.yml3 --name temp1 

CondaValueError: could not parse 'name: notebook' in: CondaEnvironment.yml3

尝试2:

conda create -n temp1 CondaEnvironment.yml3 
Fetching package metadata .............

PackageNotFoundError: Packages missing in current channels:

  - condaenvironment.yml3

We have searched for the packages in the following channels:

  - https://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.continuum.io/pkgs/main/osx-64
  - https://repo.continuum.io/pkgs/main/noarch
  - https://repo.continuum.io/pkgs/free/osx-64
  - https://repo.continuum.io/pkgs/free/noarch
  - https://repo.continuum.io/pkgs/r/osx-64
  - https://repo.continuum.io/pkgs/r/noarch
  - https://repo.continuum.io/pkgs/pro/osx-64
  - https://repo.continuum.io/pkgs/pro/noarch

尝试3

conda create CondaEnvironment.yml3 

CondaValueError: either -n NAME or -p PREFIX option required,
try "conda create -h" for more details

1 个答案:

答案 0 :(得分:5)

您应该使用conda env create命令而不是conda create命令

conda env create -f CondaEnvironment.yml3