windows下python配置numpy、matplotlib、scipy
這兩天對Python進行了研究,並且配置了numpy、matplotlib以及scipy。現對基本概念以及配置步驟介紹:
基本概念:
Python
(英語發音:/ˈpaɪθən/),
是一種物件導向、解釋型計算機程式設計語言。專用的科學計算擴充套件庫很多,例如如下3個十分經典的科學計算擴充套件庫:NumPy、SciPy和matplotlib,它們分別為Python提供了快速陣列處理、數值運算以及繪圖功能。
《python科學計算》這本書中對Python介紹得很是詳細,推薦下。電子版下載連結http://pan.baidu.com/share/link?shareid=3185677826&uk=2082755220
配置步驟:
(先介紹安裝過程,具體的下載連結在相應文字有連結,並且在文章的最後面也會專門給出連結)
首先安裝好Python,安裝過程很簡單,直接下載後點選執行就行。
接著分別安裝numpy、matplotlib、scipy。直接點選執行就行。它會自動檢索到Python的安裝路徑下,安裝過程圖如下圖所示:
此時numpy、matplotlib、scipy初步安裝完成,但是當你輸入如下程式碼:
- import matplotlib.pyplot as plt
- plt.plot([1,2,3])
- plt.ylabel('some numbers')
- plt.show()
提示說缺少dateutil,如果所示:
接著安裝dateutil,安裝過程同上面,介面截圖如下:
接著繼續執行時,會提示說缺少 pyparsing,然後下載安裝,介面如下圖所示:
到此可能以為安裝已經結束,但是當你執行畫圖程式時,又出現如下錯誤:
提示說no module named six,解決方法:把路徑如:D:\Program Files\Python27\Lib\site-packages\scipy\lib中的six.py six.pyc six.pyo三個檔案拷貝到D:\Program Files\Python27\Lib\site-packages目錄下。
至此windows下python已經成功配置numpy、matplotlib、scipy。
畫圖時,漢字出現亂碼,解決辦法:在程式碼中動態設定:新增程式碼
#-*- coding: utf-8 -*-,然後用程式碼設定字型等。
具體詳細過程可參考原網址:http://blog.chinaunix.net/uid-26611383-id-3521248.html 。
前後的效果圖為:
下載連結:
python-2.7.2.msi ,下載網址https://www.python.org/downloads/
numpy、matplotlib、scipy 。網址 http://www.scipy.org/install.html(版本 numpy-1.8.1-win32-superpack-python2.7.exe
matplotlib-1.3.1.win32-py2.7.exe scipy-0.14.0-win32-superpack-python2.7.exe)
dateutil.exe pyparsing.exe http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-dateutil
參考文章:
http://blog.csdn.NET/pfanaya/article/details/7451815
也給予了numpy、matplotlib、scipy的啟發
http://book.51cto.com/art/201401/426520.htm 安裝numpy參考
http://blog.csdn.net/msnlogo/article/details/17127013 ImportError: matplotlib requires dateutil 參考文件
http://blog.csdn.net/yang6464158/article/details/18546871 缺少six的解決方法
相關文章
- Python中的Numpy、SciPy、MatPlotLib安裝與配置Python
- windows下python安裝Numpy和Scipy模組WindowsPython
- 簡述 Python 的 Numpy、SciPy、Pandas、Matplotlib 的區別Python
- NumPy、SciPy 等Python包在Windows下的whl安裝包下載PythonWindows
- windows下解決numpy, scipy等庫安裝失敗的方法Windows
- Windows系統中安裝Python模組pip numpy matplotlibWindowsPython
- Python中Numpy及Matplotlib使用Python
- Python - Matplotlib and Numpy on Debian/UbuntuPythonUbuntu
- CentOS 6.5下安裝NumPy、SciPy、Scikit-LearnCentOS
- python2.7 + numpy-1.6.1 + matplotlib-1.1.0Python
- Windows下安裝Python、matplotlib包 及相關WindowsPython
- python實踐系列之(一)安裝 python/pip/numpy/matplotlibPython
- windows下python繪相簿matplotlib安裝方法(親測)WindowsPython
- Numpy的Matplotlib視覺化視覺化
- 圖片展示 [ Numpy 處理, Matplotlib 展示 ]
- 機器學習之numpy和matplotlib學習(四)機器學習
- Windows下pip安裝scipy報錯no lapack/blas resources foundWindows
- 給深度學習入門者的Python快速教程 - Numpy和Matplotlib篇深度學習Python
- 【Python資料探勘課程】六.Numpy、Pandas和Matplotlib包基礎知識Python
- 07-1SciPy繪圖工具的使用 scipy 積分求解與繪圖工具matplotlib.pyplot及scipy.misc 使用、檔案輸入輸出繪圖
- Windows下的matplotlib畫圖中文顯示設定Windows
- windows下配置JDKWindowsJDK
- Python 機器學習及分析工具:ScipyPython機器學習
- Python 影像處理 OpenCV (2):畫素處理與 Numpy 操作以及 Matplotlib 顯示影像PythonOpenCV
- Windows下Python安裝併為pip配置阿里映象WindowsPython阿里
- 在windows下配置PostgreSQLWindowsSQL
- python綜合學習四之Numpy和Pandas(下)Python
- python包:matplotlibPython
- 在windows上安裝numpyWindows
- python中numpy模組下的np.clip()的用法Python
- Windows 下 Laravel 環境配置WindowsLaravel
- NVM,Windows下環境配置Windows
- Windows下配置定期任務Windows
- windows下JDK環境配置WindowsJDK
- Windows下Subversion簡單配置Windows
- Python常用庫NumpyPython
- 重學python【numpy】Python
- Python3---numpyPython