miniconda3安装

conda安装
[BEGIN] 2019/4/15 17:01:00
[yff@SMART-SIT-APP-01 ~]$ cd ~
[yff@SMART-SIT-APP-01 ~]$ wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-4.7.12-Linux-x86_64.sh
[yff@SMART-SIT-APP-01 ~]$ sudo sh Miniconda3-latest-Linux-x86_64.sh 
[sudo] password for yff: 

Welcome to Miniconda3 4.5.12

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 
===================================
Miniconda End User License Agreement
===================================

Please answer 'yes' or 'no':'
>>> yes

[/root/miniconda3] >>> /usr/local/miniconda3

installation finished.
WARNING:
    You currently have a PYTHONPATH environment variable set. This may cause
    unexpected behavior when running the Python interpreter in Miniconda3.
    For best results, please verify that your PYTHONPATH only points to
    directories of packages that are compatible with the Python interpreter
    in Miniconda3: /usr/local/miniconda3
Do you wish the installer to initialize Miniconda3
in your /root/.bashrc ? [yes|no]
[no] >>> no
by running conda init? [yes|no]
[no] >>> no   

You may wish to edit your /root/.bashrc to setup Miniconda3:

source /usr/local/miniconda3/etc/profile.d/conda.sh

Thank you for installing Miniconda3!
[yff@SMART-SIT-APP-01 ~]$ sudo vim /etc/profile
增加
export PATH=/usr/local/miniconda3/bin:$PATH
保存
[yff@SMART-SIT-APP-01 ~]$ source /etc/profile
[yff@SMART-SIT-APP-01 ~]$ conda -V

[yff@SMART-SIT-APP-01 ~]$  sudo ln -s /usr/local/miniconda3/bin/activate /usr/sbin/activate
[yff@SMART-SIT-APP-01 ~]$   sudo ln -s /usr/local/miniconda3/bin/conda /usr/sbin/conda




by running conda init? [yes|no]
[no] >>> #yes


当前用户的.bashrc会添加这个配置
# added by Anaconda3 5.3.0 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/usr/local/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
    \eval "$__conda_setup"
else
    if [ -f "/usr/local/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/usr/local/anaconda3/etc/profile.d/conda.sh"
        CONDA_CHANGEPS1=false conda activate base
    else
        \export PATH="/usr/local/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup~/.bashrc
# <<< conda init <<<




conda安裝采坑
Error: No packages found in current linux-64 channels matching:
>>>
/root/.condarc 文件删除
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值