这是大部分错误消息。 (这里有一些更多的单词只是为了看看是否可以让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
答案 0 :(得分:0)
您在升级psutil
时遇到问题,xlwings
依赖于psutil
。由于您似乎正在使用Canopy,因此您应该能够使用自己的packages安装xlwings,并且应该正确地处理依赖项。
除此之外,首先升级xlwings
可能会让您再次通过pip安装org.jboss.resteasy.spi.WriterException: java.io.IOException: Stream is already closed.
。