在anaconda的环境中直接运行以下命令(base环境) 很多网上的资料是让下载visual stdio的,一个那个软件十几G,很麻烦,可以用下面的放法一步解决,也不需要花费那么大的空间下载那个软件 conda install libpython m2w64-toolchain -c msys2