Anaconda-用conda创建python虚拟环境 - 知乎 (zhihu.com)
目前conda版本 23.7.4
C:\Users\**>python
Python 3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:26:23) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
conda create --prefix=D:\anaconda3\envs\python37 python=3.7
CondaError: Unable to create prefix directory 'D:\anaconda3\envs\python37'.
Check that you have sufficient permissions.
以管理员身份运行:使用管理员权限打开cmd(命令提示符)的方法 (Windows10)_命令提示符 管理员-CSDN博客
conda activate D:\anaconda3\envs\python37
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', 'content-trust', 'convert', 'debug', 'develop', 'doctor', 'index', 'inspect', 'metapackage', 'render', 'skeleton', 'verify', 'token', 'server', 'pack', 'repo', 'env')
改为:activate D:\anaconda3\envs\python37
退出环境:conda deactivate