2012-05-08 21:54:02 +00:00
|
|
|
Installation
|
|
|
|
============
|
|
|
|
|
2018-02-14 01:24:39 +00:00
|
|
|
PyQtGraph depends on:
|
2020-04-03 17:06:25 +00:00
|
|
|
|
2020-12-22 18:25:06 +00:00
|
|
|
* Python 3.7+
|
|
|
|
* A Qt library such as PyQt5, or PySide2
|
2018-02-14 01:24:39 +00:00
|
|
|
* numpy
|
|
|
|
|
2020-04-03 17:06:25 +00:00
|
|
|
The easiest way to meet these dependencies is with ``pip`` or with a scientific
|
|
|
|
python distribution like Anaconda.
|
|
|
|
|
|
|
|
There are many different ways to install pyqtgraph, depending on your needs:
|
|
|
|
|
|
|
|
pip
|
|
|
|
---
|
|
|
|
|
|
|
|
The most common way to install pyqtgraph is with pip::
|
|
|
|
|
|
|
|
$ pip install pyqtgraph
|
|
|
|
|
|
|
|
Some users may need to call ``pip3`` instead. This method should work on all
|
|
|
|
platforms.
|
|
|
|
|
|
|
|
conda
|
|
|
|
-----
|
|
|
|
|
|
|
|
pyqtgraph is on the default Anaconda channel::
|
|
|
|
|
|
|
|
$ conda install pyqtgraph
|
|
|
|
|
|
|
|
It is also available in the conda-forge channel::
|
|
|
|
|
|
|
|
$ conda install -c conda-forge pyqtgraph
|
|
|
|
|
|
|
|
From Source
|
|
|
|
-----------
|
|
|
|
|
|
|
|
To get access to the very latest features and bugfixes you have three choices:
|
|
|
|
|
|
|
|
1. Clone pyqtgraph from github::
|
|
|
|
|
|
|
|
$ git clone https://github.com/pyqtgraph/pyqtgraph
|
|
|
|
$ cd pyqtgraph
|
|
|
|
|
|
|
|
Now you can install pyqtgraph from the source::
|
|
|
|
|
|
|
|
$ pip install .
|
|
|
|
|
|
|
|
2. Directly install from GitHub repo::
|
|
|
|
|
2020-10-01 04:04:09 +00:00
|
|
|
$ pip install git+git://github.com/pyqtgraph/pyqtgraph.git@master
|
2020-04-03 17:06:25 +00:00
|
|
|
|
2020-10-01 04:04:09 +00:00
|
|
|
You can change ``master`` of the above command to the branch name or the
|
2020-04-03 17:06:25 +00:00
|
|
|
commit you prefer.
|
|
|
|
|
|
|
|
3. You can simply place the pyqtgraph folder someplace importable, such as
|
|
|
|
inside the root of another project. PyQtGraph does not need to be "built" or
|
|
|
|
compiled in any way.
|
|
|
|
|
|
|
|
Other Packages
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Packages for pyqtgraph are also available in a few other forms:
|
2018-02-03 02:13:22 +00:00
|
|
|
|
2020-04-03 17:06:25 +00:00
|
|
|
* **Debian, Ubuntu, and similar Linux:** Use ``apt install python-pyqtgraph`` or
|
|
|
|
download the .deb file linked at the top of the pyqtgraph web page.
|
|
|
|
* **Arch Linux:** https://www.archlinux.org/packages/community/any/python-pyqtgraph/
|
|
|
|
* **Windows:** Download and run the .exe installer file linked at the top of the
|
|
|
|
pyqtgraph web page: http://pyqtgraph.org
|