Thinking problems caused by a python

problem:

developed under pyqt5 when faced with such an issue.
Traceback (MOST recent Results Last Call):
File " test.py ", Line 3, in 
from PyQt5.QtWebEngineWidgets Import *
ImportError: dlopen (/Users/caoyin/anaconda3/lib/python3.7/site-packages/PyQt5/QtWebEngineWidgets. SO, 2): Not loaded Library: @ rpath / QtWebEngineCore.framework / the Versions /. 5 / QtWebEngineCore
the Referenced from: /Users/caoyin/anaconda3/lib/python3.7/site-packages/PyQt5/QtWebEngineWidgets.so
Reason: Image Not found

Code:

# minimal QWebEngine example.
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWebEngineWidgets import *
from PyQt5.QtCore import QUrl
app = QApplication( [] )
view = QWebEngineView()
view.load( QUrl( "http://www.pyinstaller.org" ) )
view.show()
app.exec_()

analysis:

From the log view, it is not compatible with the problem caused this so that we do? The first thing my mind is to see and qt5 python version, found that the two versions are up to date. We did not find anything unusual? Zaban, right? This problem seems to ask the degree of your mother and Google. Nor is the degree of your mother has been not to force, you see this, I found the answer from his side. The original, or pyqt5 version of the problem: Note that for v5.11 and later at The 32-bit Windows Wheels do not Contain at The WebEngine modules. 
The next solution to clear, both methods can be effective pro-test: [method 5.10] specifies the installation .1 version pyqt5 PIP pyqt5 the install == 5.10.1 [] method two separate installation WebEngine, install command:

PIP PyQtWebEngine the install

Thinking:

  Primary program ape: solve bug, first look at the log, then the search, and finally look at the code, because the vast majority of people, the situation has not reached one can see the bug out. Finally, there is no way, then look at the log to locate slowly up.

      Advanced Program ape: a look at the log, it is heard Oh, I know. Within three minutes a new version came out.

Guess you like

Origin www.cnblogs.com/dylancao/p/11411933.html