“类型错误:值必须是一个序列"尝试使用 openpyxl.load_workbook 访问文件时 [英] "TypeError: Value must be a sequence" when trying to access file with openpyxl.load_workbook

查看:54
本文介绍了“类型错误:值必须是一个序列"尝试使用 openpyxl.load_workbook 访问文件时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用代码访问网络中服务器上的 excel 文件

I am accessing an excel file on a server in the network with the code

import openpyxl
path = r"S:\dic1\dic2\dic3\file.xlsx"
wb = openpyxl.load_workbook(path)

这在我的电脑上运行良好,但在另一台安装了完全相同版本的 python 的电脑上,它给了我以下错误:

This is working perfectly fine on my pc but on another pc with exactly the same version of python installed it gives me the following error:

raise TypeError("Value must be a sequence")
TypeError: Value must be a sequence

这怎么可能?任何帮助将不胜感激!

How is this even possible? Any help would be greatly appreciated!

推荐答案

请检查 openpyxl 版本.

Please Check openpyxl version.

这篇关于“类型错误:值必须是一个序列"尝试使用 openpyxl.load_workbook 访问文件时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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