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. uos如何安裝微信? uos系統微信的安裝教程2. Debian11面板怎么添加顯示桌面的快捷按鈕?3. Thinkpad e580筆記本怎么繞過TPM2.0安裝Win11系統?4. MAC怎么退出Apple ID賬號?MAC退出id賬號的方法5. Win11 預覽版25300怎么開啟文件資源管理器圖庫隱藏功能?6. CentOS7.0怎么設置屏幕分辨率?7. Win11 雙擊文件夾彈出屬性怎么辦?Win11雙擊文件夾彈出屬性解決方法8. OPENBSD上的ADSL和防火墻設置配置9. CentOS下iptables封IP的命令講解10. Centos7安裝部署免費confluence wiki(知識庫)詳細操作步驟
