且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在没有 pip 的情况下将包添加到 conda 环境中

更新时间:2023-09-20 12:14:34

您已经回答了自己的问题.事实上,如果可以的话,你真的很想做 conda install ... 而不是使用 pip.

You've answered your own question. In fact you really want to do conda install ... instead of using pip if you can.

您也可以在不激活环境的情况下安装 conda 包.只需使用 conda install -n conda install -p 代码>.

You can install a conda package also without activating the environment. Just use conda install -n <env_name> <package> or conda install -p <path/to/env> <package>.