python - 将 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 的模块
我能做些什么?
解决方案
推荐阅读
- html - Bootstrap 导航栏添加了在移动设备上不隐藏的附加下拉菜单
- ios - 在类函数中调用 Alamofire 时出错
- ubuntu - 在 Vagrant 中,如何在我的虚拟机上打开一个端口以便主机可以连接(使用 telnet 进行测试)?
- python - 如何编辑 django 默认标题
- jquery - jQuery 有 1 个选择框模仿第二个选择框
- genexus - PWA Service Worker 不在云上工作
- reactjs - 边距在使用 MUI makeStyles 的 TextField 中不起作用
- python - KNeighborsRegressor.fit() 缺少位置参数,但示例显示它只需要两个
- kotlin - Kotlin 比较两个列表 - 如果 id 匹配则覆盖它
- jestjs - Nest.js 测试模块,不能覆盖注入另一个提供程序的提供程序,未定义接收