python - ImportError: DLL load failed while importing QtWidgets: 操作成功完成
问题描述
我正在运行一个基本的 PyQt5 代码
import PyQt5.QtWidgets as qt
class MainWindow(qt.QWidget):
def __init__(self):
super().__init__()
self.setWindowTitle("Hello World!!")
self.setLayout(qt.QVBoxLayout())
self.show()
app=qt.QApplication([])
mw=MainWindow()
app.exec_()
错误显示为“ImportError: DLL load failed while importing QtWidgets: The operation completed successfully.”
我正在使用 Python 3.9.6 和最新的 PyQt5 版本 5.15.4
我也尝试了堆栈溢出中的所有可能解决方案
请有人帮忙
解决方案
推荐阅读
- node.js - Node JS res.send 不是一个函数
- reactjs - 使用样式化组件根据值设置输入样式
- out-of-memory - 飞轮本地 - 管理员 - 内存耗尽致命错误
- ibm-mq - 通过命令行创建 MQ 潜艇时获得“未授权”
- java - Java:返回从包含“目标”的“短语”中的任何元素中删除的 ArrayList。
- javascript - 如何在javascript中的过滤器方法中相乘
- python - Selenium Chromedriver 可执行文件需要在路径中(它是)
- opencv - 如何跟踪快速移动的物体?
- python-3.x - 使用map的二维数组正方形元素并将其传递给python进一步处理
- ios - 当我在明确选择一行之前选择 UIPickerView 上的“完成”按钮时,应用程序崩溃