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ī)碓敿?xì)的解決方法,一起來看看吧!
報錯內(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. 微軟規(guī)劃提升 Win10 / Win11圖形和音頻驅(qū)動質(zhì)量2. 關(guān)于linux(ubuntu 18.04) 中idea操作數(shù)據(jù)庫失敗的問題3. mac文本怎么添加快捷短語? mac電腦添加快捷文本短語的技巧4. 收到Win11推送了嗎?微軟要對Win11首個正式版強(qiáng)制升級了!5. mac程序沒反應(yīng)怎么辦 mac強(qiáng)制關(guān)閉程序的方法6. 蘋果macOS Ventura 13.3 首個 Public Beta 測試版本發(fā)布7. Win11 USB接口不能用怎么辦? Win11電腦USB接口沒反應(yīng)的解決辦法8. 更新FreeBSD Port Tree的幾種方法小結(jié)9. Ubuntu 20.04.2 發(fā)布,包括中國版的優(yōu)麒麟10. 請盡快升級: Ubuntu 18.04 LTS 和 Linux Mint 19.x 發(fā)行版將于 4 月停止支持
