Win10使用anaconda的conda activate激活環(huán)境時報錯怎么辦?
Win10系統(tǒng)是現(xiàn)在大家都在使用的系統(tǒng),最近有用戶使用anaconda的conda activate激活環(huán)境時,遇到了報錯的情況,這是什么原因呢?原因是之前激活了conda的環(huán)境沒有用 conda deactivate 退出環(huán)境,但是問題是我使用conda deactivate會繼續(xù)出現(xiàn)上述bug,下面小編為大家?guī)碓敿毜慕鉀Q方法,一起來看看吧!
報錯內(nèi)容:
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數(shù)據(jù)工作室」的原創(chuàng)文章,原文鏈接:https://blog.csdn.net/weixin_45941288/article/details/115544665
相關(guān)文章:
1. 微軟Win11即將禁用30多年歷史的SMB1傳輸協(xié)議2. Win10電腦顯卡驅(qū)動安裝失敗怎么解決?3. 非uefi怎么安裝Win11?非uefi安裝Win11的方法教程4. Win10怎么卸載virtualbox?Win10升級提示立即卸載virtualbox怎么卸載?5. Win10安裝失敗進不了系統(tǒng)怎么辦?Win10安裝失敗進不了系統(tǒng)解決方法6. Win7系統(tǒng)怎么分區(qū)?win7系統(tǒng)分區(qū)教程7. Win10如何關(guān)閉DEP(數(shù)據(jù)執(zhí)行保護)?Win10關(guān)閉DEP(數(shù)據(jù)執(zhí)行保護)的方法8. Win10 20H2文件夾隱藏了怎么顯示?9. 如何一鍵關(guān)閉所有程序?Windows系統(tǒng)電腦快捷關(guān)閉所有程序教程10. Win7系統(tǒng)peckp.sys文件導(dǎo)致藍屏怎么解決?
