How-To: Using Anaconda - Install a PyPI Package with PIP in a Virtual Conda Environment via Command Line Interface

Question

How do I install a PyPI package using PIP 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 "pip install <package_name>".

Example pypi package: see

command prompt window in venv_3_13 virtual environment with "pip install see" where see is example package.

 

2. Enter "conda list" to show all installed packages including new example package highlighted.

Example pypi package: see 1.4.1

Anaconda Prompt with "conda listl" command. List of installed packages is shown.