windows 环境下 python 安装matplotlib

本文详细介绍了如何安装Matplotlib库及其依赖项,针对常见错误进行了排查,并提供了适用于不同Python版本的安装指南。此外,文章还特别强调了在安装过程中遇到问题时的解决策略,帮助开发者顺利完成Matplotlib的安装。

matplotlib 是python的一个画图的库

安装matplotlib需要依赖一些库。刚开始安装的时候找了几个中文教程,安装的时候总是出错,或者少某个依赖包。后来直接看官方的安装教程一次就安装成功了。 下面这一段是需要安装的依赖库。根据自己的python版本下载安装

For standard Python installations you will also need to install compatible versions ofsetuptoolsnumpypython-dateutilpytzpyparsing, and cycler in addition tomatplotlib.

对于python3 需要额外安装一些东西

For Python 3.5 the Visual C++ Redistributable for Visual Studio 2015 needs to be installed. In case Python 2.7 to 3.4 are not installed for all users (not the default), the Microsoft Visual C++ 2008 ( 64 bit or 32 bit for Python 2.7 to 3.2) or Microsoft Visual C++ 2010 ( 64 bit or 32 bit for Python 3.3 and 3.4) redistributable packages need to be installed.

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值