Win10系統中使用anaconda的conda activate激活環境時報錯應該怎么解決?
許多編程人員在Windows 10系統中使用anaconda的conda activate激活環境時都出現了報錯這是什么情況呢?其實想要解決這個問題都十分的簡單,下面小編就為大家講解一下到底該怎么操作吧!
報錯內容:
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 ,回車 。
注:(xxx是你的環境名或你的環境所在路徑)
相關文章:
1. Win10怎么手工恢復注冊表自動備份功能?2. Win10提示無法正常啟動你的電腦錯誤代碼0xc0000001的解決辦法3. Win10怎么卸載重裝聲卡驅動?Win10卸載聲卡驅動詳細教程4. Win10電腦制作定時關機代碼bat文件教程5. 如何一鍵關閉所有程序?Windows系統電腦快捷關閉所有程序教程6. Win11的開機音效要怎么設置?7. Win11怎么設置任務欄小圖標?Win11設置任務欄小圖標的方法8. 怎么檢測電腦是否支持Win11系統?電腦無法運行Win11怎么辦?9. Win11渠道選哪個 升級Win11選擇哪個渠道10. Win10怎么查看軟件流量情況?Win10查看軟件流量情況的方法
