【发布时间】:2016-10-21 08:22:20
【问题描述】:
我是使用 Qt 库的 Python GUI 的新手,我开始在 Pycharm IDE 中学习 PyQt 开发我尝试运行代码——开始显示
C:\Python27\python.exe C:/Users/xxxx/PycharmProjects/initproject/helloworld 12:58, hello world
Traceback (most recent call last):
File "C:/Users/xxxx/PycharmProjects/initproject/helloworld", line 4, in <module>
from Pyside.QtCore import *
ImportError: No module named Pyside.QtCore
Process finished with exit code 1
我检查了项目解释器(使用 python 2.7)并检查了已安装的包(pip、setuptools-我找到了 Pyside),但仍然显示错误。请提前帮助和感谢。
【问题讨论】:
-
欢迎来到 Stack Overflow :-) 请查看 How to Ask 、 minimal reproducible example 并展示您到目前为止所尝试的内容。这将有助于获得有用的答案。