Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Errors when creating conda environment on OSX

Tags:

conda

anaconda

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
like image 394
user1340654 Avatar asked May 06 '26 05:05

user1340654


1 Answers

You should use the conda env create command rather than the conda create command

conda env create -f CondaEnvironment.yml3
like image 111
darthbith Avatar answered May 09 '26 01:05

darthbith