linux 中 conda配置文件 .condarc

 

001、.condarc 存在于个人用户的家目录下, 在初次安装完conda并不会生成,在运行完conda config后才会生成

(base) [root@pc1 ~]# cd ~             ## 回到用户个人家目录
(base) [root@pc1 ~]# ls               ## 列出文件
anaconda3        Desktop    Downloads             Music     Public     Videos
anaconda-ks.cfg  Documents  initial-setup-ks.cfg  Pictures  Templates
(base) [root@pc1 ~]# ls -a            ## 列出文件,包括隐藏文件,没有.condarc文件
.                .bash_logout   .config    Downloads             Music     Templates
..               .bash_profile  .cshrc     .esd_auth             Pictures  Videos
anaconda3        .bashrc        .dbus      .ICEauthority         Public    .viminfo
anaconda-ks.cfg  .cache         Desktop    initial-setup-ks.cfg  .ssh      .vimrc
.bash_history    .conda         Documents  .local                .tcshrc
(base) [root@pc1 ~]# conda config        ## 执行该命令,生成.condarc文件
(base) [root@pc1 ~]# ls -a               ## 列出文件
.                .bash_logout   .condarc  Documents             .local    .tcshrc
..               .bash_profile  .config   Downloads             Music     Templates
anaconda3        .bashrc        .cshrc    .esd_auth             Pictures  Videos
anaconda-ks.cfg  .cache         .dbus     .ICEauthority         Public    .viminfo
.bash_history    .conda         Desktop   initial-setup-ks.cfg  .ssh      .vimrc

 

002、 查看该配置文件的内容

(base) [root@pc1 ~]# cat .condarc
{}

 。

 

posted @ 2023-09-24 17:40  小鲨鱼2018  阅读(1977)  评论(0编辑  收藏  举报