Win10使用anaconda的conda activate激活環境時報錯怎么辦?
Win10系統是現在大家都在使用的系統,最近有用戶使用anaconda的conda activate激活環境時,遇到了報錯的情況,這是什么原因呢?原因是之前激活了conda的環境沒有用 conda deactivate 退出環境,但是問題是我使用conda deactivate會繼續出現上述bug,下面小編為大家帶來詳細的解決方法,一起來看看吧!
報錯內容:
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數據工作室」的原創文章,原文鏈接:https://blog.csdn.net/weixin_45941288/article/details/115544665
相關文章:
1. 請盡快升級: Ubuntu 18.04 LTS 和 Linux Mint 19.x 發行版將于 4 月停止支持2. 統信UOS怎么增加刪除字體? UOS系統添加移除字體的技巧3. 蘋果macOS Ventura 13.3 首個 Public Beta 測試版本發布4. mac文本怎么添加快捷短語? mac電腦添加快捷文本短語的技巧5. Win11 USB接口不能用怎么辦? Win11電腦USB接口沒反應的解決辦法6. 微軟規劃提升 Win10 / Win11圖形和音頻驅動質量7. 收到Win11推送了嗎?微軟要對Win11首個正式版強制升級了!8. 關于linux(ubuntu 18.04) 中idea操作數據庫失敗的問題9. 樹莓派64位系統安裝libjasper-dev顯示無法定位軟件包問題10. Ubuntu 20.04.2 發布,包括中國版的優麒麟
