配置cuda,conda

~$ vim .bashrc
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/sff/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/home/sff/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/home/sff/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/home/sff/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

# CUDA
export CUDA_HOME=/usr/local/cuda-10.0
export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH
~$ source .bashrc

 

你可能感兴趣的:(机器学习,AI)