错误:ModuleNotFoundError:没有名为“pyqtgraph”的模块?

拉布斯旺

我一直在努力导入 pyqtgraph 模块。这实际上仅与导入有关:pip3 install pyqtgraph不起作用。我的代码:from PyQt5 import QtGui
import PyQt5
import numpy as np
from PyQt5.QtWidgets import QMainWindow, QApplication, QMessageBox
import pyqtgraph as pg
import time
叶子:

<ipython-input-37-14dc06d126e4> in <module>
     31 import numpy as np
     32 from PyQt5.QtWidgets import QMainWindow, QApplication, QMessageBox
---> 33 import pyqtgraph as pg
     34 import time
     35 import sys

ModuleNotFoundError: No module named 'pyqtgraph'
AzyCrw4282

我猜你的模块安装到另一个Python版本而不是PYTHONPATH指向的版本

pip3 list -v | grep "pyqtgraph"在类 Unix 上尝试OSs,或pip3 list -v | findstr "pyqtgraph"Windows.

将显示的目录位置将与您的PYTHONPATH. 将您的位置设置为PYTHON3.7dir,它应该可以解决您的问题。请参阅此处了解如何执行此操作。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

错误:ModuleNotFoundError:没有名为“email.FeedParser”的模块

ModuleNotFoundError:没有名为错误python 3.8.2的模块

uwsgi错误-ModuleNotFoundError:没有名为“编码”的模块?

错误:ModuleNotFoundError:没有名为“ xlwt”的模块

传递导入错误:ModuleNotFoundError:没有名为“ ...”的模块

ModuleNotFoundError:没有名为“ apt_pkg”的模块错误

ModuleNotFoundError:没有名为“加密”的模块错误

错误:ModuleNotFoundError:没有名为“ requests”的模块

Python错误:ModuleNotFoundError:没有名为“ <moduleName>”的模块

Colab错误:ModuleNotFoundError:没有名为“ geopandas”的模块

Databricks 错误:ModuleNotFoundError:没有名为“sqlalchemy”的模块

介子构建错误“ModuleNotFoundError:没有名为‘mesonbuild’的模块”

Pip 错误:ModuleNotFoundError:没有名为“pip”的模块

ModuleNotFoundError:没有名为“ knox”的模块

ModuleNotFoundError:没有名为“项目”的模块

ModuleNotFoundError:没有名为“ camelcase”的模块

ModuleNotFoundError: 没有名为“model”的模块

ModuleNotFoundError: 没有名为“src”的模块

ModuleNotFoundError:没有名为“dbutils”的模块

ModuleNotFoundError:没有名为“ fastai”的模块

ModuleNotFoundError:没有名为“dmidecode”的模块

ModuleNotFoundError: 没有名为“tensorboard”的模块

ModuleNotFoundError:没有名为“ pynput”的模块

ModuleNotFoundError:没有名为“ jieba”的模块

ModuleNotFoundError:没有名为“ buildozer”的模块

ModuleNotFoundError:没有名为“模型”的模块

ModuleNotFoundError:没有名为“ matplotlib”的模块

ModuleNotFoundError: 没有名为“bootstrapform”的模块

ModuleNotFoundError:没有名为“ BaseHTTPServer”的模块