windows 下使用 conda activate 異常


一、要使用 cmd 而不是 Powershell

shift + 右鍵,選擇“在此處打開 Powershell 窗口”

 

輸入 cmd,回車,使用 cmd

 

 

 

二、修改環境變量配置

錯誤提示:

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.

注:當出現上面這個錯誤提示時,說明環境變量配置錯了,環境變量不要配置 Scripts 目錄,而要配置 condabin 目錄

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM