Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

It's ok to mix Conda install and Pip install?

Tags:

python

pip

conda

I find conda install faster (something like numpy)

however I have to sometimes do pip install to get versions that's not available in conda.

Is it safe to mix them inside conda environment?

So I did,

conda activate my-venv
conda install pip
conda install foo
pip install bar
like image 262
eugene Avatar asked Mar 25 '19 14:03

eugene


1 Answers

Situation improves starting with conda 4.6 and the pip_interop_enabled feature. So in the future it should be safe.

For now the recommendations stated in the comment of @Christoffer should remain true.

Note that it you encounter Pypi packages not available in conda, and if it is appropriate, you can create a recipe and submit to open-source community-managed channels conda-forge or bioconda. This way you won't have to ask "pip or conda?" anymore.

like image 147
FabienP Avatar answered Nov 16 '22 21:11

FabienP