pickle.load TypeError: __cinit__() takes at least 2 positional arguments (0 given) Solution

pickle.load() error:
Insert image description here

I found the reason online: this is a bug in pandas 1.3.0 and has been fixed in pandas 1.3.1.

Use pip list command to check your own pandas version:
Insert image description here

Sure enough it is 1.3.0

Reinstall pandas with the following command, version 1.3.1

pip uninstall pandas
pip install pandas==1.3.1

Problem Solved~
Reference link:https://stackoverflow.com/questions/68281924/cannot-read-pickle-file-in -cloud-run-app-typeerror-cinit-takes-at-least

Guess you like

Origin blog.csdn.net/summertime1234/article/details/134315968