Sometimes the configuration added with the token set command is not recognized by Anaconda. To resolve this, manually add the token settings to the conda configuration file (.condarc).
Steps
1. Locate and open the condarc file in your home directory (e.g., ~/.condarc).
2. Add or update the following entries, replacing <token> with your actual token:
add_anaconda_token: true
restore_free_channel: false
default_channels:
- https://repo.anaconda.cloud/t/<token>/repo/main
- https://repo.anaconda.cloud/t/<token>/repo/r
- https://repo.anaconda.cloud/t/<token>/repo/msys2
3. Save the file.
Verification
- Show conda configuration sources to confirm the `.condarc` is in use:
conda config --show-sources- Test repository access by installing a package, for example:
conda install pandasIf the modified .condarc appears in the config sources and package installation succeeds, the configuration was applied correctly.