想請教如何能將 Numpy/Scipy/Matplotlib 安裝至 Raspberry pi 上的程序~~! TKS~~! (Python 2.7)

392 views
Skip to first unread message

葉長青

unread,
Aug 18, 2016, 3:38:59 AM8/18/16
to IT_Project
如題:
      我上網找了相關資料, 有依安裝程序操作, 用 import 指令測試無問題~~!
      但執行matplotlib 的example 程式卻只有出現視窗,要畫的圖形沒出來~~!
      我已經重裝了40多遍了~~!麻煩請哪位善心人士可以給個安裝程序~~! 出手相救~~!TKS~~!
      ( 使用 Python 2.7 )
      

    在 Raspberry Pi 的安裝Numpy/Scipy/Matplotlib程序如下
   
     $ sudo apt-get install libblas-dev ## 1-2 minutes
$ sudo apt-get install liblapack-dev      ## 1-2 minutes
[$ sudo apt-get install python-dev        ## Optional]
[$ sudo apt-get install libatlas-base-dev ## Optional speed up execution]
$ sudo apt-get install gfortran           ## 2-3 minutes
$ sudo apt-get install python-setuptools  ## ?
$ sudo easy_install scipy                 ## 2-3 hours
$ ## previous might also work: python-scipy without all dependencancies
$ sudo apt-get install python-matplotlib  ## 1 hour
網址 http://wyolum.com/numpyscipymatplotlib-on-raspberry-pi/
Matplotlib 的 example 如下:
import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()
Matplotlib example 網址  http://matplotlib.org/1.4.1/users/pyplot_tutorial.html
感謝~~!!
Reply all
Reply to author
Forward
0 new messages