首先我卸载了qt5:
C:\Users\myuser\Anaconda3\Scripts>conda.exe uninstall pyqt
然后我尝试通过conda
安装pyqt4:
C:\Users\myuser\Anaconda3\Scripts>conda.exe install -c anaconda pyqt=4.11.4
Fetching package metadata ...............
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- pyqt 4.11.4* -> python 2.7*
- python 3.6*
Use "conda info <package>" to see the dependencies for each package.
使用pip
:
C:\Users\myuser\Anaconda3\Scripts>pip.exe install pyqt4
Collecting pyqt4
Could not find a version that satisfies the requirement pyqt4 (from versions:
)
No matching distribution found for pyqt4
那么可以用python3安装pyqt4吗?
类似的问题在这里是python2 How to install PyQt4 in anaconda?