首先python与matplotlib就很少介绍了,能够百度。我的也是第一次接触的小白,在安装过程当中遇到一些较为难以理解的问题,经过努力解决后,在此作为例子分享出来。python
python 下载官网 https://www.python.org/downloads/windows/
matplotlib 下载官网 https://pypi.org/project/matplotlib/#files
numpy 下载官网 https://pypi.org/project/numpy/#fileswindows
windows 7 旗舰版 64位
python 3.8.1ide
python -m pip install -U pip setuptools 升级pip python -m pip install matplotlib 在线安装matplotlib
以上两行命令在运行过程当中没有报错,就能够完成matplotlib的安装了 工具
而后在cmd窗口输入以下命令,检查是否安装成功 code
python >>> import matplotlib 其中>>>是进入python后自带的,无须输入,这一步运行没有问题的话就证实matplotlib是安装正常的,能够正常使用了。
python -m pip install [nympy包] \\此时能够用tab键补全,不用完整输入 python -m pip install [matplotlib包] \\同上
python >>> import matplotlib
python -m pip list
ip