banner



How To Install A Package In Anaconda

  • Selected Reading
  • UPSC IAS Exams Notes
  • Developer'south Best Practices
  • Questions and Answers
  • Constructive Resume Writing
  • HR Interview Questions
  • Computer Glossary
  • Who is Who

Add packages to Anaconda environment in Python


In that location are multiple ways past which we tin can add together packages to our existing anaconda surroundings.

Method ane − One common approach is to utilise the "Anaconda Navigator" to add packages to our anaconda environment. One time "Ananconda Navigator" is opened, home folio will look something like −

Get to Environments tab just below the Home tab and from at that place nosotros tin check what all packages are installed and what is not.

It is very easy to install any package through anaconda navigator, simply search the required packet, select package and click on apply to install information technology. Allow'due south suppose tensorflow packages are not installed in your estimator, I can simply search the required package(similar tensorflow), select it and click on apply to install information technology.

Method 2 − Another style of installing packages is by the use of terminal or an Anaconda Prompt −

conda install opencv

To a higher place command will install OpenCV package into your current surround.

To install specific a specific version of a opencv packet −

conda install opencv-3.4.ii

We can install multiple packages at once, such as OpenCV and tensorflow −

conda install opencv tensorflow

NoteIt is recommended to install all required packages at once so that all of the dependencies are installed at once.

To install a specific packet such as opencv into your existing environment "myenv"(in case you take a virtual environment to install projection specific packages).

conda install –name myenv opencv

Method 3 − If the bundle is non available in our conda environment or through anaconda navigator, we tin can find and install the package with another package managing director like pip.

We tin install pip in our existing conda environment past just giving the command −

conda install pip

And your screen volition exist shown an output something like −

Now if you desire to install whatever particular packet, through pip in conda environment, nosotros can do it like −

Above nosotros have installed opencv package through pip in conda surroundings.

Viewing a list of installed packages

We tin use the anaconda prompt, to list all of the packages in the active environment −

conda list

raja

Published on xix-Feb-2019 11:02:x

  • Related Questions & Answers
  • Packages in Python
  • How to install pandas using Anaconda?
  • How to install Selenium package in Anaconda?
  • Python Virtual Environment
  • Python Environment Variables
  • How to create python namespace packages in Python 3?
  • What are the packages in Python?
  • CGI Environment Variables in Python
  • Capacity To Ship Packages Within D Days in Python
  • How to develop programs with Python Namespaced Packages?
  • How to create a virtual environment in Python?
  • Packages in Java
  • Packages in C#
  • How to organize Python classes in modules and/or packages
  • What is PYTHONPATH environment variable in Python?

Source: https://www.tutorialspoint.com/add-packages-to-anaconda-environment-in-python

Posted by: smiththavis.blogspot.com

0 Response to "How To Install A Package In Anaconda"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel