在Mac OS上使用conda安装PyQt5遇到麻烦

问题描述 投票:0回答:1

[我认为它告诉我它想使用Python 3.7,但是消息令人困惑,所以我将3.7设置为终端外壳程序的默认值,但是我仍然得到以下信息:

dzimmerman@QA-Bonjour-OSX ~ % python --version
Python 3.7.2
dzimmerman@QA-Bonjour-OSX ~ % conda install -c dsdale24 pyqt5
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: - 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - pyqt5 -> python=2.7

Your python: python=3.7

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
python-3.x pyqt5 conda
1个回答
0
投票

您尝试使用的通道中的pyqt5包仅针对python 2.7编译。

您应该使用conda-forge中的版本,该版本还提供pyqt5并在OsX上具有pyhton 3.7的版本:

conda install -c conda-forge pyqt
© www.soinside.com 2019 - 2024. All rights reserved.