1. 程式人生 > >【pyqtgraph繪圖】安裝pyqtgraph

【pyqtgraph繪圖】安裝pyqtgraph

發行版 nump numpy 網頁 all ubunt cond div .com

解讀官方API-安裝

安裝

參考:http://www.pyqtgraph.org/documentation/installation.html

根據您的需要,有許多不同的方式來安裝pyqtgraph,使用Python pip命令最簡潔高效:

pip install pyqtgraph

要訪問最新的功能和錯誤修正,請從github復制pyqtgraph:

git clone https://github.com/pyqtgraph/pyqtgraph

到github上下載源代碼安裝pyqtgraph:

python setup.py install

..或者你可以簡單地把pyqtgraph文件夾放置在可導入的地方,比如在另一個項目的根目錄中。 PyQtGraph不需要以任何方式“built”或編譯。

pyqtgraph的軟件包還有其他幾種形式:

  • Anaconda:conda install pyqtgraph
  • Debian,Ubuntu和類似的Linux:使用 ``apt install python-pyqtgraph`` 或下載在pyqtgraph官網網頁頂部的.deb文件。
  • Arch Linux:安裝包(感謝 windel)。(https://aur.archlinux.org/packages.php?ID=62577)
  • Windows:在pyqtgraph官網頂部下載.exe安裝程序文件。

配置

PyQtGraph依賴於:

  • Python 2.7 or Python 3.x
  • Qt 庫 如 PyQt4, PyQt5, or PySide
  • numpy

滿足這些配置的最簡單方法是使用pip或像Anaconda這樣的科學Python發行版。

【pyqtgraph繪圖】安裝pyqtgraph