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. win7怎么設置屏幕休眠密碼(win7屏幕保護設置密碼)2. win10安裝ubuntu速度慢應對步驟分享3. Centos7安裝完畢后無法聯網顯示Server not found如何解決?4. 如何純凈安裝win10系統?uefi模式下純凈安裝win10系統圖文教程5. Win10系統鍵盤突然打不出中文字怎么辦?6. centos6.5下kvm環境搭建詳解7. 蘋果 macOS 11.7.3 更新導致 Safari 收藏夾圖標無法正常顯示8. Windows虛擬機怎么和Mac共享打印機9. 微軟Windows XP盜版提醒工具將向用戶提供10. 宏碁Swift 3筆記本如何安裝win7系統 安裝win7系統方法說明
