conda 安装新环境
conda create --name chatglm3 python=3.10
conda activate chatglm3
conda 后激活,显示报错
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate chatglm3
#
# To deactivate an active environment, use
#
# $ conda deactivate
root@test:# conda activate chatglm3
usage: conda [-h] [-v] [--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')
# 换命令,激活用source,退出还是conda
# To activate this environment, use
#
# $ source chatglm3
#
# To deactivate an active environment, use
#
# $ conda deactivate
root@test:# source activate chatglm3
(chatglm3) root@test:# pip list
Package Version
---------- -------
pip 23.3.1
setuptools 68.2.2
wheel 0.41.2