Article Directory
Problem scenario
Use jupyter
code 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 xlrd
module does not exist and needs to be created, so the xlrd
module needs to be created . But we are here to read excel
the xlsx
format in the file, if we simply create a xlrd
module, an error will be reported. It will XLRDError: Excel xlsx file; not supported
prompt: . 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 jupyter
and 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!