相关疑难解决方法(0)

可变路径问题:未找到 conda 命令

正确安装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)

bash paths conda anaconda

30
推荐指数
2
解决办法
25万
查看次数

标签 统计

anaconda ×1

bash ×1

conda ×1

paths ×1