myradio
myradio

Reputation: 1775

Running pip inside conda environment

There are a couple of questions connected to the pip/conda interation, but this is a very concrete one,

When a given conda environment is activated in the terminal,

(my_env) user@box:~$

if I run pip, for example,

pip3 install pandas==0.21.0

will this work within the environment my_env?

Upvotes: 1

Views: 207

Answers (1)

Henrique Branco
Henrique Branco

Reputation: 1930

Yes, as it is activated.

Everything you do when your environment is activated keeps inside of it.

Try to install another library with your environment activated (like black library for example) and check if exists in a global environment with pip show black.

Certainly, it won't exist in global.

Keep in mind that the conda global environment already comes with a lot of installed packages. You could check them with pip freeze.

Upvotes: 2

Related Questions