Pycharm“使用Python Console运行”导致QT冻结?
我是Pycharm的新手,并试图将其设置为,以便我可以在新的Ipython控制台中运行任何脚本。在“编辑配置”中,我已经检查了“使用Python Console运行”。当我运行任何试图显示QT窗口的脚本时,窗口会冻结 /不响应。例如:
import pyqtgraph
a = pyqtgraph.PlotWindow()
或
import pylab
pylab.plot([1,2,3],[1,2,1])
通向冷冻的情节窗口。
在Spyder(我以前的IDE)中,运行此功能将带来一个未散布 /交互式窗口,您也可以通过命令行访问其属性。在Pycharm中,窗户被冷冻。
有什么想法吗?我在Windows 10上使用Pycharm 2022.1社区和Miniconda Python 3.9。
I am new to PyCharm, and trying to set it up so I can run whatever script is open in a new IPython console. In "Edit configurations" I have checked "Run with python console". When I run any script attempting to show a Qt window, the window is frozen / not responding. For example:
import pyqtgraph
a = pyqtgraph.PlotWindow()
or
import pylab
pylab.plot([1,2,3],[1,2,1])
leads to a frozen plot window.
In Spyder (my previous IDE), running this would bring up an unfrozen / interactive window, and you could also access its properties via the command line. In PyCharm, the window is frozen.
Any ideas? I'm on Windows 10 with PyCharm 2022.1 community and Miniconda Python 3.9.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论