miniconda安装-Linux

下载

Index of /anaconda/miniconda/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirrorhttps://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/

# uname -a

Linux pc1-node1 4.4.0-186-generic #216-Ubuntu SMP Wed Jul 1 05:34:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

我的系统是X86的,所以选择

Miniconda3-py38_4.11.0-Linux-x86_64.sh

上传文件到linux

复制到其他机器

因为我需要多台机器同时安装,所以需要复制。

这里按个人需要

我采用scp命令进行复制

scp -rq ./conda/ pc1-node2:$PWD/conda

开始安装

cd /usr/data2/program/conda

chmod 777 ./*

./Miniconda3-py38_4.11.0-Linux-x86_64.sh

一直回车,然后看到

Do you accept the license terms? [yes|no]

[no] >>>

Please answer 'yes' or 'no':'

yes

我这里需要更改安装路径,我输入指定路径/usr/data2/program/conda/miniconda3

初始化?

installation finished.

Do you wish the installer to initialize Miniconda3

by running conda init? [yes|no]

[no] >>>

选yes

==> For changes to take effect, close and re-open your current shell. <==

安装完毕后,提示重新打开终端才生效

重新进入终端,看到默认启用了base了

conda已经接管系统的默认python环境了

检查conda安装

执行conda -V 看到版本,说明安装OK

配置系统默认python环境

如果不需要conda默认接管系统python环境,则执行

conda config --set auto_activate_base false

设置清华源

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes 
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

看到配置信息被写入到Writing to /root/.config/pip/pip.conf

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值