• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

Conda报错CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘.

武飞扬头像
道纪书生
帮助1

  1.  
    root@f2d53152a7c5:/workspace# conda activate Jittor
  2.  
     
  3.  
    CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
  4.  
    To initialize your shell, run
  5.  
     
  6.  
    $ conda init <SHELL_NAME>
  7.  
     
  8.  
    Currently supported shells are:
  9.  
    - bash
  10.  
    - fish
  11.  
    - tcsh
  12.  
    - xonsh
  13.  
    - zsh
  14.  
    - powershell
  15.  
     
  16.  
    See 'conda init --help' for more information and options.
  17.  
     
  18.  
    IMPORTANT: You may need to close and restart your shell after running 'conda init'.
  19.  
     
学新通

如上所示,激活虚拟环境时,出现报错,无法使用conda初始化

解决方案

  1.  
    # 重新进入虚拟环境
  2.  
     
  3.  
    source activate
  4.  
     
  5.  
    # 退出虚拟环境
  6.  
     
  7.  
    conda deactivate
  8.  
     
  9.  
    # 重新执行命令
  10.  
     
  11.  
     conda activate XXX 

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhgcfibe
系列文章
更多 icon
同类精品
更多 icon
继续加载