在 OSX 上创建 conda 环境时出错
Errors when creating conda environment on OSX
这在过去对我有用,但从 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
您应该使用 conda env create
命令而不是 conda create
命令
conda env create -f CondaEnvironment.yml3
这在过去对我有用,但从 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
您应该使用 conda env create
命令而不是 conda create
命令
conda env create -f CondaEnvironment.yml3