conda / conda-lock

Lightweight lockfile for conda environments
https://conda.github.io/conda-lock/
Other
457 stars 102 forks source link

Faulty code snipped in lock file header #518

Closed pontushojer closed 3 months ago

pontushojer commented 9 months ago

Checklist

What happened?

I generate a lock file using v2.3 and in the header the follow code snipped occurs.

# This lock file was generated by conda-lock (https://github.com/conda/conda-lock). DO NOT EDIT!
#
# A "lock file" contains a concrete list of package versions (with checksums) to be installed. Unlike
# e.g. `conda env create`, the resulting environment will not change as new package versions become
# available, unless you explicitly update the lock file.
#
# Install this environment as "YOURENV" with:
#     conda-lock install -n YOURENV --file conda-lock.yml
...

So now I try to install it into a new env with

conda-lock install -n myenv --file conda-lock.yml

But then I get the following error

Usage: conda-lock install [OPTIONS] [LOCK_FILE]
Try 'conda-lock install --help' for help.

Error: No such option: --file Did you mean --auth-file?

Conda Info

-

Conda Config

-

Conda list

-

Additional Context

-