spyder莫名其妙的出错:ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets'

ModuleNotFoundError: No module named ‘PyQt5.QtWebEngineWidgets’

from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ImportError: /home/qi/anaconda3/lib/python3.6/site-packages/PyQt5/../../../libgsttag-1.0.so.0: undefined symbol: gst_make_element_message_details

解决方法:
方法一:

$ export LD_LIBRARY_PATH=
$ spyder

方法二:

LD_LIBRARY_PATH= spyder

or

sudo gedit ~/.bashrc
export LD_LIBRARY_PATH= spyder:$LD_LIBRARY_PATH
source ~/.bashrc

then,spyder,OK。

你可能感兴趣的:(linux)