Importing a Conda Environment Into a Pixi Workspace
If the erddap-obs-matching/environment.yaml file describes an environment called erddap-obs-matching,
you can import that environment into your workspace with:
$ pixi import erddap-obs-matching/environment.yaml
- That command:
adds a Pixi feature called
erddap-obs-matchingadds channels and dependencies from the
erddap-obs-matching/environment.yamlfile to the featureadds the feature to a Pixi environment called
erddap-obs-matching
Then,
$ pixi install -e erddap-obs-matching
creates the erddap-obs-matching environment and installs the dependencies,
updating the Pixi lock file with those details to ensure reproducibility.
You can run commands in the environment with commands like:
$ pixi run -e erddap-obs-matching python -m my_module
When you are happy that the environment is working as you expect,
clean up by removing the erddap-obs-matching/environment.yaml environment description file,
and the erddap-obs-matching/environment.yaml conda environment:
$ rm erddap-obs-matching/environment.yaml
$ conda env remove -n erddap-obs-matching
Then commit and push the changes to pixi.toml and pixi.lock,
and the removal of erddap-obs-matching/environment.yaml.