安装pyqtgraph后,仍然得到ImportError

时间:2018-05-02 19:46:39

标签: python pyqt pyqtgraph

我通过此命令在anaconda环境中安装了pyqtgraph

sudo pip install pyqtgraph

但是,我收到导入错误。

import pyqtgraph as pg
ImportError: No module named pyqtgraph

我也试过了sudo apt-get install python-pyqtgraph,但是,这也行不通。能否请你帮忙?

1 个答案:

答案 0 :(得分:0)

我通过为anaconda安装pyqtgraph解决了这个问题:

conda install pyqtgraph