0

这是大部分错误消息。(这里还有一些词只是为了看看是否可以让 Stack Overflow 接受我的问题。)

bash-3.2$ pip install xlwings
Collecting xlwings
  Using cached xlwings-0.3.5.tar.gz
Installing collected packages: psutil, appscript, xlwings
  Found existing installation: psutil 0.4.1
DEPRECATION: Uninstalling a distutils installed project (psutil) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Not uninstalling psutil at /Applications/Canopy.app/appdata/canopy-1.0.3.1262.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages, outside environment /Users/schulist/Library/Enthought/Canopy_64bit/User
  Running setup.py install for psutil
Complete output from command     psutil/_psutil_osx.c:1635: error: expected ‘)’ before ‘CFDictionaryGetValue’
error: command 'gcc' failed with exit status 1

----------------------------------------
Can't roll back psutil; was not uninstalled
Command "/Users/schulist/Library/Enthought/Canopy_64bit/User/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/yr/zbxgljhx6lxb0hwn66w4t3jw0000gp/T/pip-build-a4Q7fB/psutil/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/yr/zbxgljhx6lxb0hwn66w4t3jw0000gp/T/pip-JDRpLz-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/schulist/Library/Enthought/Canopy_64bit/User/include/site/python2.7/psutil" failed with error code 1 in /private/var/folders/yr/zbxgljhx6lxb0hwn66w4t3jw0000gp/T/pip-build-a4Q7fB/psutil
4

1 回答 1

0

您在升级时遇到问题psutil,依赖xlwings于 Mac。由于您似乎在使用 Canopy,您应该能够使用他们自己的软件包安装 xlwings ,并且它应该正确处理依赖关系。

除此之外,只需psutil先升级就可以让您xlwings再次通过 pip 安装。

于 2015-05-12T10:46:03.803 回答