How-To: Using Anaconda - Update all Packages in a Virtual Conda Environment via Command Line Interface

Summary

Update all Packages in a Conda Environment via Command Line Interface

Body

Question

How do I update all packages in a virtual conda environment from the Command Line?

 

Answer

Note:  To activate an environment from the command line, see "How-To: Using Anaconda - Activate a Virtual Conda Environment via Command Line Interface"

1. From the Anaconda Prompt or Terminal command line (CLI) in an active virtual conda environment, enter "conda list".  Installed packages for environment are listed.  Example packages are highlighted below that can be updated.

Example packages: numpy 2.4.2, numpy-base 2.4.2

command prompt window in venv_3_13 virtual environment with "conda list"

 

2. Enter "conda update -all" to update all packages.

Example packages that will be updated: numpy 2.4.2, numpy-base 2.4.2

a. Example packages are highlighted.

b. Enter "y" to proceed with the update.

Anaconda Prompt with "conda update --all" command.

 

3. Package updates are completed.

Prompt window is displayed with update complete.

 

4. Enter "conda list". Packages are listed including highlighted updated example packages.

Prompt window is displayed with list of packages including updated example packages.

Details

Details

Article ID: 2206
Created
Tue 3/24/26 10:21 AM
Modified
Tue 5/12/26 10:41 AM

Related Articles

Related Articles (7)

Install an R package from CRAN in a virtual conda environment using the command line interface.
Remove a Package in a Conda Environment via Command Line Interface.
Update a Package in a Conda Environment via Command Line Interface
How to safely update your software tools using either a simple "point-and-click" dashboard or a few quick commands. While staying up to date provides the latest security and features, the guide cautions against updating in the middle of a project to prevent unexpected changes to your current work. Using separate, unique environments for different projects is recommended to keep your updates organized and your computer stable.
Conda channels act like specialized "app stores" or online libraries where you can find and download different software packages for your projects. This article explains how to choose between major stores like the curated Anaconda Defaults or the massive, community-run Conda-Forge. It also covers how to set a "priority" for these stores so your computer always knows which one to check first to keep your software stable and up-to-date.
Think of Conda as a way to create separate, private "workspaces" on your computer for different projects so their software settings don't get mixed up or cause errors. While other tools only handle one coding language, Conda is a "heavy hitter" that can manage almost any software component, making it the top choice for complex fields like Data Science and AI. By using these isolated spaces, you keep your computer stable and make it easy to share your exact setup with others.
Index of Miniconda How-To Articles for Virtual Conda Environments