简体   繁体   English

conda可以和pip共存吗?

[英]Can conda coexist with pip?

Maybe is a stupid question but I would like to install a python package that is in conda but not in pip. 也许这是一个愚蠢的问题,但我想安装一个在conda中但不在pip中的python软件包。 This is the package: 这是包裹:

https://wrf-python.readthedocs.io/en/latest/installation.html https://wrf-python.readthedocs.io/en/latest/installation.html

I don't have conda installed. 我没有安装conda。 My concern is that can conda coexist with pip? 我担心的是conda是否可以与pip共存? In other words, if I install conda and install that package, I would be able to use it with all the packages that I already have installed in pip? 换句话说,如果我安装了conda并安装了该软件包,是否可以将其与已经在pip中安装的所有软件包一起使用?

thanks 谢谢

You can do this by running 您可以通过运行

conda config --add create_default_packages pip 康达配置--add create_default_packages点

and pip will be installed in any new environment. 和pip将安装在任何新环境中。

But, the whole point of conda is for it to work better than pip, so I would suggest using conda instead of pip at all times. 但是,conda的全部要点是它要比pip更好,因此我建议始终使用conda而不是pip。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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