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

Summary

Remove a Package in a Conda Environment via Command Line Interface.

Body

Question

How do I remove a package in a virtual conda environment via command line interface?

 

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 command line (CLI) in an active virtual conda environment, enter "conda list" to list the installed packages.

Example package: pandas

anaconda prompt with "conda list" and pandas highlighted

 

2. Remove package.

a. Enter "conda uninstall <package_name>".

Example package: pandas

anaconda prompt with "conda uninstall pandas"

b. A prompt to proceed will be displayed and require "y".

anaconda prompt with prompt to proceed with uninstall

 

3. Enter "conda list" again to verify package was removed.

anaconda prompt cli with "conda list"

Details

Details

Article ID: 2384
Created
Thu 5/7/26 3:35 PM
Modified
Tue 5/12/26 10:41 AM

Related Articles

Related Articles (7)

Install a Package in a Conda Environment via Command Line Interface
Install a PyPI Package with PIP in a Conda Environment via Command Line Interface
Install an R package from CRAN in a virtual conda environment using the command line interface.
Update a Package in a Conda Environment via Command Line Interface
Update all Packages in a Conda Environment via Command Line Interface
Upgrade a PyPI Package with PIP in a Conda Environment via Command Line Interface
Index of Miniconda How-To Articles for Virtual Conda Environments