building 'matplotlib.ft2font' extension\n \nerror: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": <https://visualstudio.microsoft.com/visual-cpp-build-tools/>\n [end of output]\n\n note: This error originates from a subprocess, and is likely not a problem with pip.\nerror: legacy-install-failure\n\n\xc3\x97 Encountered error while trying to install package.\n\xe2\x95\xb0\xe2\x94\x80> matplotlib\n\nnote: This is an issue with the package mentioned above, not pip.\nhint: See above for output from the failure\nRun Code Online (Sandbox Code Playgroud)\n
小智 5
您需要下载Microsoft C++ Build Tools 并将其安装在系统中,然后选择Workloads并选中Desktopdevelopment using C++选项。完成后,您可以再次运行安装命令。
\n或者
\n您还可以选择从\n Python 扩展包的非官方 Windows 二进制文件下载此 Python 库
\n