CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’.簡單解決方案(這種錯(cuò)誤有時(shí)候突然出現(xiàn),有時(shí)候自動(dòng)消失,此所謂突然抽風(fēng))
一、錯(cuò)誤的理解,首先對(duì)應(yīng)錯(cuò)誤的直接翻譯如下,其實(shí)就是指令沒找到,出現(xiàn)錯(cuò)誤。
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
If using 'conda activate' from a batch script, change your
invocation to 'CALL conda.bat activate'.
CommandNotFoundError:您的shell未正確配置為使用“conda activate”。
如果從批處理腳本中使用“conda activate”,請(qǐng)更改
調(diào)用“CALL conda.bat activate”。
二、那么要么是conda環(huán)境安裝有問題,要么是沒有在conda的環(huán)境下去使用“conda activate”這個(gè)命令,所以才命令找不到然后無效。安裝一般是沒有問題的,那么在shell環(huán)境下應(yīng)該要先啟動(dòng)conda的base環(huán)境。
activate
文章來源:http://www.zghlxwxcb.cn/news/detail-520567.html
三、上一步完成啟動(dòng)成功之后就可以正常按照conda的命令操作并且不會(huì)報(bào)CommandNotFoundError的錯(cuò)了。
conda activate 虛擬環(huán)境(博主舉例dgl)
文章來源地址http://www.zghlxwxcb.cn/news/detail-520567.html
到了這里,關(guān)于CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘.簡單解決方案的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!