miniconda安装

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 文件删除

你可能感兴趣的:(python,conda)