conda删除channel
今天装包,用conda install,发现清华的源貌似已经用不了。报错如下:
CondaRuntimeError: Runtime error: Connection error: HTTPSConnectionPool(host
='mirrors.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /anac
onda/pkgs/free/win-64/repodata.json (Caused by ConnectTimeoutError(kages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000018726EF0>,
'Connection to mirrors.tuna.tsinghua.edu.cn timed out. (connect timeout=3.05)'))
: https:
在删除前再学习一个命令,查看通道
conda config –show
add_anaconda_token: True
add_pip_as_python_dependency: True
allow_softlinks: True
always_copy: False
always_yes: False
auto_update_conda: True
binstar_upload: None
changeps1: True
channel_alias: https://conda.anaconda.or
channel_priority: True
channels:- conda-forge- https://mirrors.tuna.tsinghua.edu.cn- defaults
client_cert:
client_cert_key:
create_default_packages: []
debug: False
default_channels:- https://repo.continuum.io/pkgs/free- https://repo.continuum.io/pkgs/pro- https://repo.continuum.io/pkgs/msys2
disallow: []
json: False
offline: False
proxy_servers: {}
quiet: False
shortcuts: True
show_channel_urls: True
ssl_verify: True
track_features: []
update_dependencies: True
use_pip: True
verbosity: 0
我们用删除的命令把这个镜像个删除了,注意要把引号给去掉。
conda config –remove channels ‘https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/’
再来看show,里面已经没有清华源了。
conda config –show
(D:\Program Files\Anaconda2) C:\Users\Administrator>conda config --show
add_anaconda_token: True
add_pip_as_python_dependency: True
allow_softlinks: True
always_copy: False
always_yes: False
auto_update_conda: True
binstar_upload: None
changeps1: True
channel_alias: https://conda.anaconda.org/
channel_priority: True
channels:- conda-forge- defaults
client_cert:
client_cert_key:
create_default_packages: []
debug: False
default_channels:- https://repo.continuum.io/pkgs/free- https://repo.continuum.io/pkgs/pro- https://repo.continuum.io/pkgs/msys2
disallow: []
json: False
offline: False
proxy_servers: {}
quiet: False
shortcuts: True
show_channel_urls: True
ssl_verify: True
track_features: []
update_dependencies: True
use_pip: True
verbosity: 0