我试图将目前版本的PyQt5暂时降级到PyQt4。但是,此命令conda install pyqt=4.11
只会产生此错误。如何安装PyQt4在蟒蛇版本4.3.X
UnsatisfiableError: The following specifications were found to be in conflict:
- pyqt 4.11* -> python 2.7*
- python 3.6*
我该怎么做才能解决这个问题?
我试图将目前版本的PyQt5暂时降级到PyQt4。但是,此命令conda install pyqt=4.11
只会产生此错误。如何安装PyQt4在蟒蛇版本4.3.X
UnsatisfiableError: The following specifications were found to be in conflict:
- pyqt 4.11* -> python 2.7*
- python 3.6*
我该怎么做才能解决这个问题?
用途:conda info pyqt=4
可以看到哪些Python版本都在工作。 目前,最新的Python3与PyQt4的工作是3.5
现在:
# Create new environment with python 3.5
conda create -n py35_qt4 python=3.5 anaconda
# Activate the new environment
activate py35_qt4
# Remove pyqt5
conda remove pyqt
# Install the PyQt4 package in the new environment
conda install pyqt=4
PyQt4仅适用于Python 2,而PyQt5仅适用于Python 3.您可能试图在Python 3环境中安装PyQt4。我建议你用Python 2创建一个新的anaconda环境,然后安装PyQt4。
正确的,但PyQt5可工作在Python 2和3 –
蟒蛇4.1.1使用Python 3.5.3,它正在使用PyQt 4.11。 – tisaconundrum