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. 統信uos系統怎么進行打印測試頁和刪除打印機?3. Win10藍屏提示memorymanagement怎么辦?Win10藍屏提示memorymanagement的解決方法4. Win10修復引導工具怎么使用?Win10修復引導工具使用教程5. Win7怎么恢復默認的用戶配置文件?6. Win10點擊開始菜單沒有反應怎么辦?Win10點擊開始菜單沒有反應的解決方法7. CentOS7.0怎么設置屏幕分辨率?8. Win10沒有1920x1080分辨率怎么辦?Win10沒有1920x1080分辨率解決方法9. Win10沒有關機選項怎么辦?Win10沒有關機選項的解決方法10. Win11“上帝模式” 如何打開?