正确安装Anaconda后。我想在完成安装后执行以下操作。我在安装 anaconda 时忘记这样做了:
export PATH="/root/anaconda3/bin"
conda --version
conda command not found
Run Code Online (Sandbox Code Playgroud)
然后我打开
gedit /root/.bashrc
Run Code Online (Sandbox Code Playgroud)
我在文件末尾添加
export PATH="/root/anaconda3/bin"
Run Code Online (Sandbox Code Playgroud)
但我仍然得到
conda --version
conda command not found
Run Code Online (Sandbox Code Playgroud)
EDIT1: gedit /root/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace …
Run Code Online (Sandbox Code Playgroud)