今天在另一台电脑上安装了Anaconda,在创建虚拟环境时报错
CustomValidationError: Parameter channel_priority = 'flexible' declared in <<merged>> is invalid. The value 'flexible' cannot be boolified.
或者
CustomValidationError: Parameter channel_priority = 'strict' declared in <<merged>> is invalid. The value 'strict' cannot be boolified.
遇到这种错误一般是C:\Users\xxx\.condarc,这个文件出问题了
用记事本打开这个文件
然后把内容删除,输入复制下面内容
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- defaults
show_channel_urls: true
然后直接保存,再打开Anaconda命令行,创建虚拟环境就不会报错了