How to install pyqtgraph in Ubuntu 16.04

If you need any python module, the best alternative to install it is thrught pip:

sudo pip install pyqtgraph

but, I don't know why, if you try import pyqtgraph it doesn't recognize:

python                  
Python 2.7.12 (default, Jul  1 2016, 15:12:24) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyqtgraph as pg
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pyqtgraph

Don't remember that always you can use apt-get for the same:

sudo apt-get install python-pyqtgraph

Now, you can see all examples with the following command:

python -m pyqtgraph.examples

Enjoy it!

Comments

Popular posts from this blog

How to fix Android when developer options are not available for this user

How to install Matlab without GUI

Contiki 3.0 on XM1000