
Linux 安装 miniconda
1. 安装miniconda 1. 百度输入miniconda 找到miniconda,如下图第一个链接
2. 找到Linux版本的miniconda (此处我要安装Python3.7版本的Linux下的miniconda) 3. 复制下载链接 如下 repo.anaconda/miniconda/Miniconda3-py37_4.12.0-Linux-x86_64.sh 4. 在Linux下 使用如下命令下载 sudo wget repo.anaconda/miniconda/Miniconda3-py37_4.12.0-Linux-x86_64.sh 5. 使用如下命令查询是否下载到当前目录下 ls 6. 使用如下命令安装miniconda,安装全程要选yes,中间某一步(conda 初始化)默认是 no,一定要选yes bash Miniconda3-py37_4.12.0-Linux-x86_64.sh 7. 安装好之后,输入 bash,即可切换至base环境 2.miniconda的换源(为了后面安装其他库或者包更快): 1. 在你的终端(桌面里进行终端)中输入命令 conda config --add channels mirrors.tuna.tsinghua.edu/anaconda/pkgs/free/ conda config --set show_channel_urls yes 2. 打开~/.condarc文件(sudo gedit ~/.condarc), 应该是如下内容 channels: - mirrors.tuna.tsinghua.edu/anaconda/pkgs/free/ - defaults show_channel_url: true 3. 重点来了!!!!!删除第三行“- defaults”。defaults指的是conda在境外的默认源,如果不删除的话,conda install时仍会在境外源中查找。最终修改完成后的文件如下所示:
channels: - mirrors.tuna.tsinghua.edu/anaconda/pkgs/free/ show_channel_urls: true使用命令conda info可以查询修改的相关信
👁️ 阅读量:0
© 版权声明:本文《Linux 安装 miniconda》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686595289a301945.html。