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!
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
Post a Comment