python xlwings 安装_xlwings runpython安装失败
我嘗試在mac上使用xlwings(10.11.5)和Excel 2016 for mac(版本15.23.2),但我很快就被卡住了。在
當我跑的時候
xlwings runpython安裝
我得到以下錯誤:$ xlwings runpython install
Traceback (most recent call last):
File "/usr/local/bin/xlwings", line 7, in
from xlwings.command_line import main
File "/Library/Python/2.7/site-packages/xlwings/command_line.py", line 22, in
hfs_to_posix_path(app('Microsoft Excel').properties().get(k.templates_path))))
File "/Library/Python/2.7/site-packages/aeosa/appscript/reference.py", line 577, in __getattr__
selectortype, code = self.AS_appdata.referencebyname()[name]
File "/Library/Python/2.7/site-packages/aeosa/appscript/reference.py", line 259, in referencebyname
self.connect()
File "/Library/Python/2.7/site-packages/aeosa/appscript/reference.py", line 225, in connect
t = self._target = self._aemapplicationclass(**kargs)
File "/Library/Python/2.7/site-packages/aeosa/aem/__init__.py", line 76, in __init__
self._address = aemconnect.localapp(path, newinstance, hide)
File "/Library/Python/2.7/site-packages/aeosa/aem/aemconnect.py", line 187, in localapp
desc = _launchapplication(path, _runevent, newinstance, hide)
File "/Library/Python/2.7/site-packages/aeosa/aem/aemconnect.py", line 55, in _launchapplication
raise CantLaunchApplicationError(err.args[0], path)
aem.aemconnect.CantLaunchApplicationError: Can't launch application at u'/Applications/Microsoft Excel.app': The executable file is missing or has an unusable format. (-10827)
有什么辦法嗎?在
版本:
Python 2.7.10
xlwings(0.7.2)
psutil(4.3.0)
appscript(1.0.1)
總結
以上是生活随笔為你收集整理的python xlwings 安装_xlwings runpython安装失败的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python计算狗的年龄_你家狗的年龄相
- 下一篇: 2018考研计算机408经验详谈