Problem solving: Jupyter reports an error when reading the xlsx format file in the excel file, prompting ImportError: Install xlrd >= 1.0.0

Problem scenario

Use jupytercode development, during operation, indicating: ImportError: Install xlrd >= 1.0.0. This blog post is mainly to solve this problem.

Problem environment

software version
Python 3.7

problem causes

From the prompt, the xlrdmodule does not exist and needs to be created, so the xlrdmodule needs to be created . But we are here to read excelthe xlsxformat in the file, if we simply create a xlrdmodule, an error will be reported. It will XLRDError: Excel xlsx file; not supportedprompt: . Therefore, we need to specify the version here, and the specified version is 1.2.0.

solution

Console execution:

pip install xlrd==1.2.0

result

After creation, restart jupyterand run normally.

to sum up

The upgrade of the module needs to be cautious, and it may affect the existing modules.

Ask for praise

If my article is helpful to everyone, you can click like or favorite at the bottom of the article;
if there is a good discussion, you can leave a message;
if you want to continue to view my future articles, you can click Follow
You can scan the following QR code to follow me 'S public account: Fengye Zhixuege, check out my latest share!
Insert picture description here
Bye bye

Guess you like

Origin blog.csdn.net/u013084266/article/details/113780061