【解决方法】ubuntu下conda: command not found

安装好Anaconda3后,创建虚拟环境时显示

conda: command not found

解决方法:

  1. Ctrl+Alt+T打开终端
  2. 输入sudo apt install vim安装vim
  3. 输入vim ~/.bashrc
  4. 在文本最后添加环境变量
export PATH=~/anaconda3/bin:$PATH
  1. 输入anaconda -v
    显示:
WARNING: The conda.compat module is deprecated and will be removed in a future release.
anaconda Command line client (version 1.7.2)

OK.

你可能感兴趣的:(Linux)