pd.read_csv (function reads csv file and reports error)

1、错误:ImportError: Missing optional dependency ‘fsspec’. Use pip or conda to install fsspec.

screenshot:
Please add image description

Cause analysis: Missing "fsspec" dependencies, use cmd to download: pip install fsspec

Please add image description

You can see that my computer is working, but I still get an error. This is because I use tensorflow in Anaconda to write python code, so we need to add the fsspec dependency in the tensorflow environment.

As shown in the picture:

Please add image description

Open it again and you will see success.

Please add image description

2.问题: Missing optional dependency ‘openpyxl’. Use pip or conda to install openpyxl.

screenshot:

Please add image description

The reason is that there is no openpyxl dependency. Add pip install openpyxl to cmd. Or add openpyxl dependency to tensorflow environment

Please add image description

You can see that the operation was successful:

Please add image description

Guess you like

Origin blog.csdn.net/qq_62127918/article/details/130702732