首页 > 解决方案 > 将 xlsx 文档运行到 spyder

问题描述

伙计们,我正在尝试使用以下命令在 spyder 上打开一个 .xlsx 文档:

import pandas as pd

df = pd.read_excel (r'C:\Users\lucas.francklin\Desktop\Programação\LM automatica\Teste.xlsx') 
print (df)

他们给我:

Missing optional dependency 'xlrd'. Install xlrd >= 1.0.0 for Excel support Use pip or conda to install xlrd

我试过了 :

pip install xlrd and !pip install xlrd

它给了我:

Note: you may need to restart the kernel to use updated packages.

C:\Users\lucas.francklin\AppData\Local\Programs\Spyder\Python\python.exe:没有名为 pip 的模块

我能做些什么?

标签: pythonspyderxlrdopenxlsx

解决方案


推荐阅读