很可能是 conda的源出问题了。
检查下如下文件,修改成如下
(base) [root@dev ~]# more .condarc
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
show_channel_urls: true
(base) [root@dev ~]#
再检查下
(base) [root@dev ~]# conda info
active environment : base
active env location : /root/anaconda2
shell level : 1
user config file : /root/.condarc
populated config files : /root/.condarc
conda version : 4.7.5
conda-build version : 3.17.8
python version : 2.7.16.final.0
virtual packages :
base environment : /root/anaconda2 (writable)
channel URLs : https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
package cache : /root/anaconda2/pkgs
/root/.conda/pkgs
envs directories : /root/anaconda2/envs
/root/.conda/envs
platform : linux-64
user-agent : conda/4.7.5 requests/2.21.0 CPython/2.7.16 Linux/3.10.0-957.21.3.el7.x86_64 centos/7.6.1810 glibc/2.17
UID:GID : 0:0
netrc file : None
offline mode : False