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輸入msconfig如何恢復設置?2. Ubuntu20.04LTS上架Win10應用商店 Windows10S不支持此應用程序3. 通過注冊表刪除多余網卡本地連接4. Windows10開始—運行可以給電腦下達什么命令?Windows運行命令大全5. CentOS如何查看命令執行進度?6. CentOS下iptables封IP的命令講解7. WmiPrvSE.exe是什么進程?WMI Provider Host占用很高CPU的解決方法8. WinXP iis出現server application error怎么解決9. 去掉系統快捷方式箭頭的途徑——修改注冊表10. Fdisk硬盤分區圖文教程(超詳細)
