安装好Anaconda3后,创建虚拟环境时显示
conda: command not found
解决方法:
- Ctrl+Alt+T打开终端
- 输入
sudo apt install vim
安装vim - 输入
vim ~/.bashrc
- 在文本最后添加环境变量
export PATH=~/anaconda3/bin:$PATH
- 输入
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.