python - remove default conda channels - Stack Overflow

I have just re-installed my anaconda. Below is my ~.condarcchannels:- - - custom_channels:conda-fe:

I have just re-installed my anaconda. Below is my ~/.condarc

channels:
  - 
  - 
  - 
custom_channels:
  conda-fe: 
  pytorch: 
show_channel_urls: true

However when I type

conda config --show channels I get the following

channels:
  - 
  - 
  - 
  - 
  - 

and conda config --show custom_channels still gives me the following:

custom_channels:
  pkgs/main: 
  pkgs/r: 
  conda-fe: 
  pytorch: 

How do I remove the repo.anaconda channels? As my conda is still trying to download packages from the default channels. I tried

conda config --remove channels

but got

CondaKeyError: 'channels': value '' not present in config

I have just re-installed my anaconda. Below is my ~/.condarc

channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-fe: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
show_channel_urls: true

However when I type

conda config --show channels I get the following

channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
  - https://repo.anaconda/pkgs/main
  - https://repo.anaconda/pkgs/r

and conda config --show custom_channels still gives me the following:

custom_channels:
  pkgs/main: https://repo.anaconda
  pkgs/r: https://repo.anaconda
  conda-fe: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

How do I remove the repo.anaconda channels? As my conda is still trying to download packages from the default channels. I tried

conda config --remove channels https://repo.anaconda/pkgs/main

but got

CondaKeyError: 'channels': value 'https://repo.anaconda/pkgs/main' not present in config
Share Improve this question asked Nov 16, 2024 at 5:05 给你机会你不中用啊给你机会你不中用啊 234 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

managed to solve this in the end. For anyone having the same issue, run

find / -name ".condarc" 2>/dev/null

and see how many other .condarc files exist in your machine.

I ended up deleting the other .condarc files.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745664990a4639069.html

相关推荐

  • python - remove default conda channels - Stack Overflow

    I have just re-installed my anaconda. Below is my ~.condarcchannels:- - - custom_channels:conda-fe:

    4小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信