使用win32com自动化在linux上与葡萄酒 [英] automating excel with win32com on linux with wine

查看:2179
本文介绍了使用win32com自动化在linux上与葡萄酒的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个相当复杂的Excel 2010文件,我使用python和win32com自动化。为此,我在ubuntu机器上运行虚拟机中的窗口。



但是,同样的excel文件可以直接使用wine 1.3来解决/运行在Ubuntu Maverick上。任何希望自动化Excel的葡萄酒,所以我可以放弃虚拟机?



或者是只是疯狂的谈话(我怀疑)。

解决方案

你需要一个Windows 版本的Python,而不是Linux版本 - 我说你必须运行Python在葡萄酒下面。



您是否尝试使用普通Windows安装的Python葡萄酒?我没有看到任何这样的原因不行。



Google搜索中有许多页面显示Windows Python(32位)工作正常。


I have a rather complex Excel 2010 file that I automate using python and win32com. For this I run windows in virtual box on an ubuntu machine.

However, that same excel file solves/runs fine on Ubuntu Maverick directly using wine 1.3. Any hope of automating Excel on wine so I can drop the VM?

Or is that just crazy talk (which I suspect).

解决方案

You'd need a Windows version of Python, not a Linux version -- I'm saying you'd have to run Python under wine as well.

Have you tried with just a normal Windows install of Python on wine? I don't see any reason why this wouldn't work.

There is are numerous pages in a Google search that show Windows Python (32-bit) working fine.

这篇关于使用win32com自动化在linux上与葡萄酒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆