在MacOs High Sierra上出现Canopy Package Manager错误

时间:2019-06-27 11:10:08

标签: python enthought package-managers canopy

我通过热情的Canopy的内置软件包管理器安装软件包时遇到问题。我尝试使用“升级所有软件包”,但是失败了。

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

程序包管理器返回以下消息:

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)

对我来说,此屏幕没有提供信息,因此我不知道如何解决此问题。

1 个答案:

答案 0 :(得分:0)

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