我相对不熟悉Python编程,想要学习Python中的统计和数据管理知识。为此,我想安装Matplotlib,但出现了一些问题。
我看到其他人也遇到了这个问题,但我还没有完全理解如何解决它。
我使用以下命令进行安装:
pip install matplotlib
我已安装以下规格
- Windows 10
- Python 3.8
- Microsoft Studio 2019
我遇到的第一个错误是需要安装Microsoft Studio,所以我安装了它。我还尝试更新pip。
BUILDING MATPLOTLIB
matplotlib: yes [3.1.1]
python: yes [3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:21:23) [MSC v.1916 32 bit (Intel)]]
platform: yes [win32]
...
checkdep_freetype2.c
src/checkdep_freetype2.c(1): fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.23.28105\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: