未安装Excel的Pandas read_excel [英] Pandas read_excel without excel being installed

查看:52
本文介绍了未安装Excel的Pandas read_excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个非常愚蠢的问题:

This may be a rather stupid question:

如果我在 python pandas 中使用了 pd.read_excel(somefile)函数,是否需要在执行python代码的计算机上安装Excel?

If I use the pd.read_excel(somefile) function in python pandas does this function require Excel to be installed on the machine executing the python code?

推荐答案

又甜又甜:不,不是.

需要 xlrd Python软件包,您可以按照安装 pandas 的相同方式进行安装(例如 pip install xlrd ).

It requires the xlrd Python package, which you can install in the same way you've installed pandas (e.g. pip install xlrd).

这篇关于未安装Excel的Pandas read_excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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