Skip to content
Advertisement

how to install multiple packages in one line using conda?

I need to install below multiple packages using conda. I am not sure what is conda-forge? some uses conda-forge, some doesn’t use it. Is it possible to install them in one line without installing them one by one? Thanks

JavaScript

Advertisement

Answer

Why some packages have to be installed through conda forge:

Conda official repository only feature a few verified packages. A vast portion of python packages that are otherwise available through pip are installed through community led channel called conda-forge. You can visit their site to learn more about it.

How to install multiple packages in a single line?

The recommended way to install multiple packages is to create a .yml file and feed conda this. You can specify the version number for each package as well.

The following example file can be fed to conda through conda install --file:

JavaScript

To specify different channel for each package in this environment.yml file, you can use the :: syntax.

JavaScript
Advertisement