1-Python 安裝 Matplotlib

 參考鏈接 http://blog.sciencenet.cn/blog-579770-738240.html

1. http://www.lfd.uci.edu/~gohlke/pythonlibs/ 資源下載鏈接

2. 安裝 python 包 https://www.python.org/downloads/windows/ 安裝時記得選擇加入到path

3. 安裝 matplotlib https://pypi.python.org/pypi/matplotlib/ 下載匹配python的matplotlib安裝文件(.whl)。運行CMD -> 切換到下載目錄 ->

4. pip install wheel(如需升級會有提示) -> pip install matplotlib.xx.whl

5. 安裝numpy 從鏈接1中 下載資源。運行CMD -> 切換到下載目錄 ->pip install numpy.xx.whl

6. 測試是否安裝成功  輸入代碼,驗證是否報錯。

from numpy import *
import matplotlib.pyplot as plt


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章