Win10使用anaconda的conda activate激活環(huán)境時(shí)報(bào)錯(cuò)怎么辦?
Win10系統(tǒng)是現(xiàn)在大家都在使用的系統(tǒng),最近有用戶使用anaconda的conda activate激活環(huán)境時(shí),遇到了報(bào)錯(cuò)的情況,這是什么原因呢?原因是之前激活了conda的環(huán)境沒有用 conda deactivate 退出環(huán)境,但是問題是我使用conda deactivate會(huì)繼續(xù)出現(xiàn)上述bug,下面小編為大家?guī)碓敿?xì)的解決方法,一起來看看吧!
報(bào)錯(cuò)內(nèi)容:
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’。
To initialize your shell, run
$ conda init 《SHELL_NAME》
Currently supported shells are:
– bash
– cmd.exe
– fish
– tcsh
– xonsh
– zsh
– powershell
See ‘conda init --help’ for more information and options.
IMPORTANT: You may need to close and restart your shell after running ‘conda init’。
解決辦法:
1、打開CMD,先輸入activate,回車。
2、然后再conda activate xxx ,回車 。
聲明:本文為CSDN博主「DK數(shù)據(jù)工作室」的原創(chuàng)文章,原文鏈接:https://blog.csdn.net/weixin_45941288/article/details/115544665
相關(guān)文章:
1. centos7怎么進(jìn)去tmp目錄并清除垃圾?2. Win10桌面點(diǎn)擊右鍵刷新特別卡怎么辦3. 戴爾怎么使用u盤重裝win10?戴爾使用u盤重裝win10系統(tǒng)的方法分享4. 怎么安裝雙系統(tǒng)?win10穩(wěn)定版和win11雙系統(tǒng)安裝圖文教程5. win10更新失敗無限重啟的解決辦法6. Windows7文件無法刪除怎么辦?7. 炫龍耀9000II筆記本U盤怎么安裝win7系統(tǒng)?安裝win7系統(tǒng)步驟分享8. Windows7與Server2008雙系統(tǒng)錯(cuò)誤9. Windows 7打官方中文包后軟件亂碼的解決方法10. 銀河麒麟操作系統(tǒng)(KyLin)常用問題及解決方法
