Documentation Index
Fetch the complete documentation index at: https://mintlify.com/conda/conda/llms.txt
Use this file to discover all available pages before exploring further.
What is .condarc
The.condarc file is conda’s configuration file where you can specify settings that modify conda’s behavior. It’s written in YAML format and allows you to customize channels, environment directories, package caching, network settings, and much more.
The name “condarc” stands for “conda run command” configuration file. Think of it as conda’s personal preferences file that persists across all conda operations.
File Locations and Precedence
Conda searches for.condarc files in multiple locations and merges them with a specific precedence order:
Settings in higher-priority locations override those in lower-priority locations. You can view all configuration sources and their values with:
Common Configuration Options
Here are the most frequently used.condarc settings:
Channels
Control where conda searches for packages:List of channels to search for packages. Channels earlier in the list have higher priority.
How strictly conda respects channel priority:
strict: Only use packages from highest-priority channelflexible: Allow mixing packages from different channelsdisabled: Ignore channel priority, use latest version
Base URL for channel names that don’t include a full URL.
Environment and Package Directories
Directories to search for named environments. New environments are created in the first writable directory.
Directories for package caches. Downloaded packages are stored in the first writable directory.
Solver Settings
Which solver backend to use.
libmamba is faster, classic is the traditional conda solver.Network and Security
Verify SSL certificates. Can be
true, false, a path to a CA bundle, or 'truststore' to use OS certificates.User Experience
Automatically activate the base environment when starting a new shell.
Modify the command prompt to show the active environment name.
Configuration Examples
Basic User Configuration
A typical~/.condarc for a data scientist:
Corporate Environment
Configuration for working behind a corporate firewall:CI/CD Pipeline
Settings optimized for automated builds:Managing Your .condarc
Viewing Configuration
See all active settings:Modifying Configuration
Add a channel:Configuration Scopes
Modify different configuration files:Validation
Validate all.condarc files for syntax errors:
See Also
- Environment Variables - Alternative way to configure conda
- Settings Reference - Complete list of all configuration options
- Channels Guide - Understanding conda channels