Install anaconda on the server

wget https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh
sh Anaconda3-5.3.0-Linux-x86_64.sh -b
vim .bashrc

.bashrcAdd the following at the end of the file

# added by Anaconda3 5.3.0 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/home2/xwf/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
    \eval "$__conda_setup"
else
    if [ -f "/home2/xwf/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/home2/xwf/anaconda3/etc/profile.d/conda.sh"
        CONDA_CHANGEPS1=false conda activate base
    else
        \export PATH="/home2/xwf/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda init <<<

Enter the path information on the command line pwd, and then modify the above relative position to your own path information. After
insert image description here
saving the file, enter in the terminal:

source .bashrc

Check if conda is successfully installed:

conda -V
# conda info

Install the corresponding version of cuda tf

Guess you like

Origin blog.csdn.net/weixin_43845922/article/details/127848376