Your installation of pyqt4 is not ok.
Tip: you may want to uninstall python, pyqt4 and pyqtgraph and then:
1) install pythonxy:
https://python-xy.github.io/ (this will give you
python +pyqt4 + many other stuff)
2) reinstall pyqtgraph
Suerte!
> Hello. I惴 new here and I don愒 know much about python. My teacher told me
> to install python 2.7.12, pyqt4, pycharm and qt. I thought I had installed
> them all but then he told us to open cmd and type "python" and enter. Then
> "import pyqtgraph" and enter. Finally "python -m pyqtgraph.example" and I
> was told to play with the graphs but after I try to import pyqtgraph an
> error appears (like the image).
> Can someone help me? I扉e tried a lot of things. Thank you.
>