下载:
第一步选择MINGW官网:MinGW-w64 - for 32 and 64 bit Windows - SourceForge.net
点击Files

点击第一个Personal Builds


选择8.1.0
点击第二个threads-posix

点击第二个seh
最后左键点击下载x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z

解压
将其放在高级设置中
找到安装好的mingw的文件夹
点击mingw64->bin
复制文件路径
点击设置,查看高级系统设置(点击)->环境变量
将路径新建复制到用户变量和系统变量中