使用命令conda activate pytorch激活pytorch时出现以下报错:
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’)
解决方案
改用以下命令激活pytorch
activate pytorch
后话
好吧,我从网上搜到的关于pytorch的激活命令都是下面的
conda activate pytorch
但是在我的电脑上就是不行,我在看一篇yolo的教程时发现他的激活命令是
activate yolo
然后我试着平替pytorch,竟然真成功了