Ubuntu18.04安装Anaconda3遇到的问题

1.conda:未找到命令

# 环境变量配置
gedit ~/.bashrc

# 在末尾加上
export PATH=~/anaconda3/bin:$PATH

2.运行conda activate xxx 时遇到CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.

这时使用下面的命令:

 source activate

 source deactivate

# 再次输入你要激活的虚拟环境指令 
conda activate your_virtual_name

你可能感兴趣的:(Ubuntu18.04安装Anaconda3遇到的问题)