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強制更新怎么解決?Win10強制更新的解決方法2. Windows10更新KB5006670 無法連接到打印機 錯誤代碼0x000007093. UOS文檔查看器怎么添加書簽? UOS添加書簽的三種方法4. deepin20時間顯示不準確怎么調整? deepin時間校正方法5. Win10怎么設置任務欄上的圖標大小?6. Win11怎么獲取Trustedinstaller權限?Win11需要來自Trustedinstaller的權限怎么辦?7. 微軟Win10系統升級助手怎么用?微軟Win10升級工具在哪里下載?8. 如何在電腦PC上啟動Windows11和Linux雙系統9. CentOS7.0怎么設置屏幕分辨率?10. 統信uos系統怎么進行打印測試頁和刪除打印機?