首先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