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 Prompt

and then

conda --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

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值