Sunday, October 5, 2025
HomeLanguagesAdd packages to Anaconda environment in Python

Add packages to Anaconda environment in Python

Let’s see some methods that can be used to install packages in the Anaconda environment. There are many ways one can add pre-built packages to an anaconda environment. So, let’s see how to direct the path in the anaconda and install them. 

Add packages to the Anaconda environment using the navigator

Step 1: Open your Anaconda navigator

 

Step 2: 

  • Go to the Environment tab.
  • Search your package in the upper right search bar.
  • Check the package you want to install.

 

Step 3: Here, you can click on apply to install or update your packages.

 

Add packages to the Anaconda environment using the pip command

**Take note that using pip in the anaconda environment may not work in your device. If such a case occurs, you can flawlessly use the conda command. 

  1. Open Anaconda Command prompt as administrator
  2. Use cd\ to come out of the set directory or path.
  3. Run pip install command. 
pip install numpy
pip install scikit-learn

Add packages to the Anaconda environment using git 

  1. Download git files
  2. Clone or download git hub files in some directory.
  3. Open Anaconda Command prompt as administrator.
  4. Use cd C:\Users\… to locate the downloaded site.
  5. Then run pip install setup.py.

Add packages to the Anaconda environment wheel 

  1. Download the wheel package.
  2. Download binary files or .whl files from an authentic website.
  3. Open Anaconda Command prompt as administrator.
  4. Use cd C:\Users\… to locate the downloaded site.
  5. Then run pip install ___.whl

Add packages to the Anaconda environment Conda forge Command 

This type of installation will guarantee that package will be downloaded to the system. Because this type of installation resolves environments, package-package conflicts, etc.  

  1. Self Upgrade related packages to the downloading package.
  2. Open Anaconda Command prompt as administrator.
  3. Then run conda install -c conda-forge ____
conda install -c conda-forge opencv 
RELATED ARTICLES

Most Popular

Dominic
32337 POSTS0 COMMENTS
Milvus
86 POSTS0 COMMENTS
Nango Kala
6706 POSTS0 COMMENTS
Nicole Veronica
11870 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11934 POSTS0 COMMENTS
Shaida Kate Naidoo
6821 POSTS0 COMMENTS
Ted Musemwa
7086 POSTS0 COMMENTS
Thapelo Manthata
6779 POSTS0 COMMENTS
Umr Jansen
6778 POSTS0 COMMENTS