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

Summary

Update a Package in a Conda Environment via Command Line Interface

Body

Question

How do I update a package 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.  An example package is highlighted below and can be updated.

Example package: numpy 2.4.2

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

 

2. Enter "conda update <package_name>" to update the package.

Example package: numpy 2.4.2

a. Example package and package dependency is highlighted.

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

Anaconda Prompt with "conda update numpy" command.

 

3. Enter "conda list". Packages are listed including highlighted example updated package.

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

Details

Details

Article ID: 2205
Created
Mon 3/23/26 2:20 PM
Modified
Tue 5/12/26 10:41 AM

Related Articles

Related Articles (9)

Install a Package in a Conda Environment via Command Line Interface
Install an R package from CRAN in a virtual conda environment using the command line interface.
Remove a Virtual Conda Environment via Command Line Interface
Remove a Package in a Conda Environment via Command Line Interface.
Update all Packages 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