Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
310 views
in Technique[技术] by (71.8m points)

pandas - xlrd missing in GCP AI notebooks

Since today, every AI notebook I provision seems to be missing xlrd. Installing it with conda lands me in package hell: Trying to load an xlsx. First error: xlrd missing, install it. After installing xlrd: the current version (>=2) only supports xls, not xlsx.

One of the reasons I'm using GCP AI platform notebooks is this used to be hassle free. Does anyone have a fix or knowledge what is going on?

question from:https://stackoverflow.com/questions/65922286/xlrd-missing-in-gcp-ai-notebooks

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

According to the this documentation xlrd library will no longer read anything other than .xls files. They recommend to look in Working with Excel Files in Python to check alternatives to xlsx files. As @ArthurBorshenko commented in your question, openpyxl is one option.

To install dependencies in AI Platform Notebooks follow the official documentation.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...