Skip to content

Instantly share code, notes, and snippets.

@gwbischof
Last active January 26, 2023 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gwbischof/19a7a7226da06f8dafb33292e2217458 to your computer and use it in GitHub Desktop.
Save gwbischof/19a7a7226da06f8dafb33292e2217458 to your computer and use it in GitHub Desktop.

Install latest nsls2 conda environment locally

For Mac

Copy the env.yml file locally.

https://github.com/nsls2-conda-envs/nsls2-collection/blob/main/envs/env-py310.yml

Remove any linux specific packages. There could be some additional touchups required to get it to build.

Build the environment

conda env create --file=env-py310.yml

For Linux

Download the archive from zenodo.

https://zenodo.org/record/7470912#.Y9Lg--zMJsB

Install conda-pack

conda install -c conda-forge conda-pack

Unpack environment into directory my_env

$ mkdir -p ~/miniconda3/envs/my_env
$ tar -xzf my_env.tar.gz -C ~/miniconda3/envs/my_env/my_env

Conda unpack

$ ~/miniconda3/envs/bin/conda-unpack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment