How to add package to conda environment without pip?

Sören picture Sören · Nov 12, 2015 · Viewed 67.1k times · Source

How can I add a package to an existing conda environment?

If it is a python package I can use pip install <package>, but what if pip does not work?

Is it sufficient to activate the environment and use conda install <package>?

Answer

faph picture faph · Nov 13, 2015

You've answered your own question. In fact you really want to do conda install ... instead of using pip if you can.

You can install a conda package also without activating the environment. Just use conda install -n <env_name> <package> or conda install -p <path/to/env> <package>.