无法在我的Ubuntu机器中安装“ xlwings”

时间:2019-03-12 12:34:39

标签: python xlwings

我正在尝试在我的Ubuntu计算机中安装pip3 install xlwings Collecting xlwings Using cached https://files.pythonhosted.org/packages/cc/c9/6bb1849dbee6e8a40beb9a0d21df9787bee45cda1d0bb575a0cd388dd260/xlwings-0.15.3.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-u90aes_a/xlwings/setup.py", line 33, in <module> raise OSError("currently only Windows and OSX are supported.") OSError: currently only Windows and OSX are supported. ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-u90aes_a/xlwings/ 模块,但失败,如下所示

cd xlwings
python setup.py install

此错误的解决方法是什么? Ubuntu不支持xlwings吗?我还尝试手动安装以下内容,但也失败了。

{{1}}

任何建议将不胜感激。

2 个答案:

答案 0 :(得分:0)

您可以在Anaconda for Windows内安装Wine,然后再安装Excel within Wine,然后,也许(没有保证),您可能会发现xlwings ...只是...可能...有效......但是一路上可能会有很多减速带...

答案 1 :(得分:0)

请先运行此命令,然后再破坏pip install xlwings(适用于Linux用户)

导出INSTALL_ON_LINUX = 1

好的编码