...
How to check if any of my installations or environments are using Anaconda-licensed packages
You may use the conda_licensed_envs
command-line tool to see if any of your environments may be using Anaconda-licensed packages. The tool is available:
- On ECMWF's Atos HPCF or ECS, running:
No Format /usr/local/apps/conda/conda_licensed_envs
- On any other UNIX-based platform (Linux, Mac or Windows Subsystem for Linux - WSL) platform, you can download downloading conda_licensed_envs and run running it in your terminal.
- On Windows, you can download downloading conda_licensed_envs.ps1 and run it in your Windows Terminal or PowerShell.
Checking manually
Here are the main steps you can manually take to check whether you may be using an Anaconda licensed product:
- if using your own installation, check LICENSE or LICENSE.txt file at the root of the installation. If they contain the Anaconda Terms of Service, then you are using Anaconda's distribution and are subject to those their Terms of Service.
- For existing environments run:
If any of the packages come from https://repo.anaconda.com/pkgs then the environment is using Anaconda's own channels, subject to Anaconda's Terms of Service.No Format conda list --explicit -n <environment_name>
- If "defaults" is in the list of channels of the environment or in your ~/.condarc, then packages subject to Anaconda's Terms of Service may be used.
...
Generate a safe environment yaml file
You may use the conda_export
command-line can help you export an existing environment using default Anaconda channels into one without it, using conda-forge as replacement. It will export the environment from history, but preserving the same package versions installed including those installed through pip. The tool is available:
- On ECMWF's Atos HPCF or ECS, running:
No Format /usr/local/apps/conda/conda_export my_env > my_env.yml
- On any other platform, you can downloaddownloading conda_exporter and run running it in your terminal.
- In order for it to work, these are the requirements:
- Python 3.6 or above
- Pyyaml python package, which can usually be installed with
pip install pyyaml
if not available. - a working conda installation.
- In order for it to work, these are the requirements:
...