简体   繁体   English

如何在当前python和spyder版本中使用pyqt4?

[英]How can I use pyqt4 with current python and spyder version?

for some python programming I do for work I'd like to use pyqt4. 对于一些python编程,我要做的工作是使用pyqt4。 I also use Anaconda and the Spyder IDE. 我也使用Anaconda和Spyder IDE。

To downgrade pyqt from 5 to 4 I created a new environment within Anaconda. 要将pyqt从5降级到4,我在Anaconda中创建了一个新环境。 The problem is that everytime I install Spyder in this environment the pyqt version is being upgraded to 5 again. 问题是,每次在此环境中安装Spyder时,pyqt版本都会再次升级到5。

Is there any way to get around this? 有什么办法可以解决这个问题?

( Spyder maintainer here ) You need to create your environment (called spy-pyqt4 in this case) with the following command 这里是Spyder维护者 )您需要使用以下命令创建环境(在本例中为spy-pyqt4

conda create -n spy-pyqt4 spyder=3.2.8 pyqt=4

Spyder 3.2.8 was our last version to support PyQt4. Spyder 3.2.8是我们最后一个支持PyQt4的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM