Reputation: 425
This has worked for me in the past, but creating a conda environment from a yml file isn't working for me anymore. Any idea how to fix it? I have conda 4.3.29.
Attempt 1:
conda create --file CondaEnvironment.yml3 --name temp1
CondaValueError: could not parse 'name: notebook' in: CondaEnvironment.yml3
Attempt 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
Attempt 3
conda create CondaEnvironment.yml3
CondaValueError: either -n NAME or -p PREFIX option required,
try "conda create -h" for more details
Upvotes: 2
Views: 736
Reputation: 19617
You should use the conda env create
command rather than the conda create
command
conda env create -f CondaEnvironment.yml3
Upvotes: 4