ImportError: Missing optional dependency 'xlrd'. Install xlrd >= 2.0.1 for xls Excel support Use pip or conda to install xlrd.
时间: 2023-11-05 22:39:42 浏览: 324
读取xlsx,xrld版本为2.0.1版本不能用 1.2.0才可以
It seems like you are encountering an ImportError related to the missing optional dependency 'xlrd' while working with Excel files. To resolve this issue, you need to install 'xlrd' version 2.0.1 or higher. You can install it using either pip or conda.
If you are using pip, you can run the following command in your terminal or command prompt:
```
pip install xlrd
```
If you are using conda, you can run the following command instead:
```
conda install -c anaconda xlrd
```
Once 'xlrd' is installed, you should be able to import and use it without any issues. Let me know if you have any further questions!
阅读全文