报错信息
You can undo this by running `conda init --reverse $SHELL`? [yes|no]
[no] >>> yes
Anaconda3-2023.09-0-Linux-x86_64.sh: 471: SHELL: parameter not set
解决方法
export SHELL=/bin/bash
可以shell里执行,也可以写入 ~/.bashrc
问题信息
conda activate ppchatocr
usage: conda [-h] [--no-plugins] [-V] COMMAND ...
conda: error: argument COMMAND: invalid choice: 'activate' (choose from 'clean', 'compare', 'config', 'create', 'info', 'init', 'install', 'list', 'notices', 'package', 'remove', 'uninstall', 'rename', 'run', 'search', 'update', 'upgrade', 'build', 'content-trust', 'convert', 'debug', 'develop', 'doctor', 'index', 'inspect', 'metapackage', 'render', 'skeleton', 'env', 'repo', 'server', 'token', 'verify', 'pack')
解决方法
cd /root/anaconda3/etc/profile.d
source conda.sh