python - 手动更新 conda 中的 channel 优先级

标签 python conda

无法找到手动更新 conda channel 优先级的方法。 想要将这些 channel 作为最优先的 channel :

https://anaconda.org/conda-forge
https://anaconda.org/bioconda

如何手动更新 .condarc 以及文件保存位置 如果我们有很多环境?

最佳答案

查看示例 .condarc 文件 here 。您的首选 channel 应位于channels: 列表的顶部。所以你应该执行以下操作

  • 编辑(或创建)~/.condarc
  • 在文件开头添加以下文本

    channels:
      - conda-forge
      - bioconda
      - <your personal channel or any other channels you want ...>
    

关于python - 手动更新 conda 中的 channel 优先级,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48742287/

相关文章:

python - if i!=0 in list comprehension 给出语法错误

python - 如何在 Pandas 中进行左外连接排除

python-3.x - PyQt5 中的 QWebSettings(版本 5.6.0)

python - condaEnviromentError : cannot remove current enviroment . 停用并再次运行 conda remove

python - Pycharm无法安装TensorFlow

python - 在 Airflow 上触发 dag 时将参数传递给 UI

python - 将 turtle 命令分配给变量并在 python 上调用它们

python - 通过 pySerial 将字符串发送到端口出错

python - 在 Windows 上安装 Anaconda 4.2,找不到 "conda"

python - conda 安装的软件包不适用于 jupyter