Conda环境无法激活conda activate myenv usage: conda-script.py [-h] [–no-plugins] [-V] COMMAND … conda-scrip

使用命令conda activate XXXX 环境时出现以下报错:
usage: conda-script.py [-h] [–no-plugins] [-V] COMMAND …
conda-script.py: 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’, ‘convert’, ‘debug’, ‘develop’, ‘doctor’, ‘index’, ‘inspect’, ‘metapackage’, ‘render’, ‘skeleton’, ‘token’, ‘repo’, ‘server’, ‘pack’, ‘env’, ‘verify’, ‘content-trust’)

解决方法Powershell管理员输入  conda init

不行就conda init bash

重启搞定

你可能感兴趣的:(conda,windows,linux)