13691255250 发表于 2022-7-19 10:38:21

求助!!pandas库报错

代码如下
import pickle
import pandas
with open('A_data', 'rb') as f:
    mk_df = pickle.load(f)
print(mk_df)

出现了报错
Traceback (most recent call last):
File "D:/同心源实习/代码/反转因子.py", line 3, in <module>
    import pandas
File "D:\pycharm\123\lib\site-packages\pandas\__init__.py", line 22, in <module>
    from pandas.compat import is_numpy_dev as _is_numpy_dev
File "D:\pycharm\123\lib\site-packages\pandas\compat\__init__.py", line 15, in <module>
    from pandas.compat.numpy import (
File "D:\pycharm\123\lib\site-packages\pandas\compat\numpy\__init__.py", line 4, in <module>
    from pandas.util.version import Version
File "D:\pycharm\123\lib\site-packages\pandas\util\__init__.py", line 7, in <module>
    from pandas.core.util.hashing import (# noqa:F401
File "D:\pycharm\123\lib\site-packages\pandas\core\util\hashing.py", line 17, in <module>
    from pandas._libs import lib
File "pandas\_libs\missing.pxd", line 11, in init pandas._libs.lib
File "pandas\_libs\missing.pyx", line 22, in init pandas._libs.missing
ImportError: cannot import name is_platform_32bit

青出于蓝 发表于 2022-7-19 10:51:42

cmd 输入
pip install tushare --upgrade
页: [1]
查看完整版本: 求助!!pandas库报错