MacOs High Sierra 上的 Enthought Canopy Package Manager 错误

Enthought Canopy Package Manager error on MacOs High Sierra

我在通过 enthought Canopy 的内置包管理器安装包时遇到问题。我尝试使用 "Upgrade all packages",但失败了。

之前,我试图根据这个解决我的问题,但它没有起作用。

包管理器 returns 消息:

Warming up...

Traceback (most recent call last):
  File "build/bdist.macosx-10.6-       x86_64/egg/canopy_dashboard/packman/package_action_worker.py", line 52,     in run
  File "build/bdist.macosx-10.6-    x86_64/egg/canopy_dashboard/packman/package_action.py", line 196, in     execute
  File "build/bdist.macosx-10.6-    x86_64/egg/canopy_dashboard/packman/packman.py", line 726, in <lambda>
  File "build/bdist.macosx-10.6-    x86_64/egg/canopy_dashboard/packman/packman.py", line 1116, in     _upgrade_all
  File "build/bdist.macosx-10.6-    x86_64/egg/canopy_platform/cpython_packages_manager.py", line 268, in     upgrade_all_packages_prompt
  File "build/bdist.macosx-10.6-    x86_64/egg/canopy_platform/cpython_packages_manager.py", line 334, in     _upgrade_all_packages_prompt
PackageUpgradeAllError: upgrading all packages failed. Details     below: 
 Traceback (most recent call last):
  File "build/bdist.macosx-10.6-    x86_64/egg/canopy_platform/edm_api.py", line 65, in wrapper
  File "build/bdist.macosx-10.6-    x86_64/egg/canopy_platform/edm_api.py", line 431, in     upgrade_all_packages_command
  File "build/bdist.macosx-10.6-    x86_64/egg/canopy_platform/edm_api.py", line 95, in wrapper
  File "build/bdist.macosx-10.6-    x86_64/egg/canopy_platform/edm_api.py", line 454, in     _upgrade_all_command
  File "build/bdist.macosx-10.6-    x86_64/egg/edm/core/packages_manager.py", line 124, in decorator
  File "build/bdist.macosx-10.6-    x86_64/egg/edm/core/packages_manager.py", line 490, in     upgrade_all_command
  File "build/bdist.macosx-10.6-    x86_64/egg/edm/core/packages_manager.py", line 505, in     _upgrade_all_command
  File "build/bdist.macosx-10.6-    x86_64/egg/edm/core/packages_manager.py", line 774, in     _actions_from_request
UnresolvableRequirements: Unable to satisfy requirements 
Conflicting requirements:
Requirements: 'qt == 5.6.2-1'
    Install command rule (+qt-5.6.2-1)
Requirements: 'pyside == 1.2.2-15' <- 'qt ^= 4.8.7' <- 'qt'
    Can only install one of: (+qt-4.8.7-7 | +qt-5.6.2-1)
Requirements: 'pyside == 1.2.2-15' <- 'shiboken ^= 1.2.2' <- 'qt ^=     4.8.7'
    shiboken-1.2.2-14 requires (+qt-4.8.7-4 | +qt-4.8.7-5 | +qt-    4.8.7-6 | +qt-4.8.7-7 | +qt-4.8.7-9 | +qt-4.8.7-10)
Requirements: 'shiboken == 1.2.2-14'
    Install command rule (+shiboken-1.2.2-14)

对我来说,这个屏幕没有提供信息,所以我不知道如何解决这个问题。

请卸载pyside、shiboken和qt,然后重试。 (Pyside 已经使用 qt 4 安装,这不能与 qt 5 在同一环境中共存。)或者,您可以使用 Canopy 的集成 EDM 使用 pyqt 5 创建一个新环境,这样您仍然可以在您的环境中使用 pyside / qt 4原始用户环境并在您的新环境中使用 pyqt 5。