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. Win10系統ping時出現傳輸失敗常見故障?這招收好了2. Win10系統下雙核瀏覽器如何切換內核?3. 統信uos系統怎么選擇打印機驅動? uos打印機驅動的兩種選擇方法4. Windows7系統codemeter.exe是什么文件?能卸載嗎?5. Win10桌面圖標大小怎么更改?Win10桌面圖標大小更改方法介紹6. Win10微軟搜索很慢怎么辦?瞬間提速方法推薦7. macOS Ventura 13.3 正式版發布: 增加了重復照片檢測功能等功能8. Windows11升級可能會加密硬盤 注意!這個按鈕不要碰!9. 教你如何使用兩行代碼激活Windows系統10. Win8系統提示無線適配器或訪問點有問題怎么解決?