Your shell has not been properly configured to use 'conda activate'.
  TnD0WQEygW8e 2023年11月05日 42 0

 # ./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



【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  2Fnpj8K6xSCR   2024年05月17日   101   0   0 Python
  xKQN3Agd2ZMK   2024年05月17日   70   0   0 Python
  fwjWaDlWXE4h   2024年05月17日   38   0   0 Python
  Ugrw6b9GgRUv   2024年05月17日   40   0   0 Python
  YpHJ7ITmccOD   2024年05月17日   39   0   0 Python
TnD0WQEygW8e