Python | Add packages to Anaconda environment

Let’s see some methods that can be used to install packages to Anaconda environment.

There are many ways one can add pre-built packages to anaconda environment. So, let’s see how to direct the path in anaconda and install them.

Using pip command :



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

 
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 downloaded site.
  5. Then run pip install setup.py.

 
Using wheel :

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

 

Using 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


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :

2


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.