anaconda使用activate出现错误的解决方法
不懂anaconda使用activate出现错误的解决方法?其实想解决这个问题也不难,下面让小编带着大家一起学习怎么去解决,希望大家阅读完这篇文章后大所收获。
Anaconda使用conda activate激活环境出错
错误如下:
CommandNotFoundError:Yourshellhasnotbeenproperlyconfiguredtouse'condaactivate'.IfyourshellisBashoraBournevariant,enablecondaforthecurrentuserwith$echo"./home/ubuntu/anaconda3/etc/profile.d/conda.sh">>~/.bashrcor,forallusers,enablecondawith$sudoln-s/home/ubuntu/anaconda3/etc/profile.d/conda.sh/etc/profile.d/conda.shTheoptionsabovewillpermanentlyenablethe'conda'command,buttheydoNOTputconda'sbase(root)environmentonPATH.Todoso,run$condaactivateinyourterminal,ortoputthebaseenvironmentonPATHpermanently,run$echo"condaactivate">>~/.bashrcPrevioustoconda4.4,therecommendedwaytoactivatecondawastomodifyPATHinyour~/.bashrcfile.YoushouldmanuallyremovethelinethatlookslikeexportPATH="/home/ubuntu/anaconda3/bin:$PATH"^^^TheabovelineshouldNOLONGERbeinyour~/.bashrcfile!^^^
这是由于conda的激活命令出了问题,解决方法如下:
#激活环境sourceactivate#退出环境sourcedeactivate
随后解决问题。
可以进行激活环境了:
condaactivateyour-env-name
感谢你能够认真阅读完这篇文章,希望小编分享anaconda使用activate出现错误的解决方法内容对大家有帮助,同时也希望大家多多支持亿速云,关注亿速云行业资讯频道,遇到问题就找亿速云,详细的解决方法等着你来学习!
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。