尝试在python中导入pouchdb时出错

时间:2019-06-10 08:32:17

标签: python python-3.x pouchdb

我已经使用pip安装了pouchdb和PyQt5。当我尝试

import pouchdb

我收到以下错误

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\ProgramData\Anaconda33\lib\site-packages\pouchdb\__init__.py", line 88, in <module>
    from pouchdb import context
  File "C:\ProgramData\Anaconda33\lib\site-packages\pouchdb\context.py", line 73, in <module>
    class Page(QtWebKitWidgets.QWebPage):
NameError: name 'QtWebKitWidgets' is not defined

如何正确安装pouchdb?

1 个答案:

答案 0 :(得分:1)

当您实际需要下载python-pyqt5.qtwebkit

时,您可能已经安装了python3-pyqt5.qtwebkit

这就是为我解决问题的原因