Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 为什么在安装PyQT5后,anaconda中缺少模块QTCore?_Python_Python 3.x_Pyqt_Pyqt5 - Fatal编程技术网

Python 为什么在安装PyQT5后,anaconda中缺少模块QTCore?

Python 为什么在安装PyQT5后,anaconda中缺少模块QTCore?,python,python-3.x,pyqt,pyqt5,Python,Python 3.x,Pyqt,Pyqt5,每次我执行此代码时,它都会给我ModuleNotFoundError。我使用的是spyder IDE ModuleNotFoundError:没有名为“PyQt5.QTCore”的模块 我尝试使用更新conda。但没有成功。如何修复此模块 from PyQt5.QtWidgets import QPushButton,QMainWindow,QApplication import sys from PyQt5.QTCore import QRect from PyQt5 import QtGui

每次我执行此代码时,它都会给我ModuleNotFoundError。我使用的是spyder IDE

ModuleNotFoundError:没有名为“PyQt5.QTCore”的模块

我尝试使用更新conda。但没有成功。如何修复此模块

from PyQt5.QtWidgets import QPushButton,QMainWindow,QApplication
import sys
from PyQt5.QTCore import QRect
from PyQt5 import QtGui

尝试QtCore,加上一点t:-)