• Your shell has not been properly configured to use 'conda activate'.


     # ./conda activate py38

    CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
    To initialize your shell, run

        $ conda init <SHELL_NAME>

    Currently supported shells are:
      - bash
      - 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'.

    # conda init
    no change     /home/software/anaconda3/condabin/conda
    no change     /home/software/anaconda3/bin/conda
    no change     /home/software/anaconda3/bin/conda-env
    no change     /home/software/anaconda3/bin/activate
    no change     /home/software/anaconda3/bin/deactivate
    no change     /home/software/anaconda3/etc/profile.d/conda.sh
    no change     /home/software/anaconda3/etc/fish/conf.d/conda.fish
    no change     /home/software/anaconda3/shell/condabin/Conda.psm1
    no change     /home/software/anaconda3/shell/condabin/conda-hook.ps1
    no change     /home/software/anaconda3/lib/python3.8/site-packages/xontrib/conda.xsh
    no change     /home/software/anaconda3/etc/profile.d/conda.csh
    no change     /root/.bashrc
    No action taken.

    解决办法

    # 激活环境
    source activate
    # 退出环境
    source deactivate

    conda activate py38
  • 相关阅读:
    C# 通过Attribute制作的一个消息拦截器
    Newtonsoft.Json高级用法
    这些年,我收集的JavaScript代码(一)
    Storm整体架构分析
    Worker的内部工作原理
    Storm源码分析
    Storm集群部署
    Storm 官方文档翻译 --- 消息的可靠性保障
    [转] 如何快速掌握一门新技术/语言/框架
    小狗钱钱读书笔记
  • 原文地址:https://www.cnblogs.com/emanlee/p/14402899.html
Copyright © 2020-2023  润新知