本文主要是介绍conda:command not found,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
conda:command not found
安装完成anaconda, 出现了conda: command not found,记录一下;
you might want to try this:for anaconda 2 :export PATH=~/anaconda2/bin:$PATH
for anaconda 3 :export PATH=~/anaconda3/bin:$PATH
for anaconda 4 :Use the Anaconda Promptand thenconda --version
to confirm that it worked. The export PATH=~/anaconda3/bin:$PATH works but stops when you exit the terminal in order change that you have to run sudo nano ~/.bashrc and then copy the path into the file and save it after that you activate the changes using source .bashrc.check with conda install anaconda-navigator if not installed follow the anaconda install instructions again
上文的copy the path into the file,指的是安装anaconda的绝对路径,比如 export PATH=/home/ username/anaconda3/bin:$PATH,退出之后,回到用户主目录,即cd ~,然后执行 source .bashrc,如果不懂,可以看下面的视频。
follow along with this video https://youtu.be/Pr25JlaXhpc
后期,我发现关机重启之后,又会出现conda:commond not found ,解决办法如下:
解决方法:
1.编辑文件: sudo gedit etc/profile
2.将添加到文件的最后: export PATH=$PATH:/home/pig/anaconda3/bin
3.保存文件并重启linux系统: sudo reboot
这篇关于conda:command not found的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!