简体   繁体   中英

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

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

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.

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