简体   繁体   中英

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 ?

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM