Skip to content

我下载了用户的数据文件PKL但是当我用python打开的时候提示No module named 'LRU_cache' #43

@Suyuchen77

Description

@Suyuchen77

代码是类似这样的
import pickle

文件路径

file_path = 'test.pkl'

with open(file_path, 'rb') as f:
data = pickle.load(f)
print(data)

报错是这样的
Traceback (most recent call last):
File "D:\pythonProject\PKL.py", line 7, in
data = pickle.load(f)
ModuleNotFoundError: No module named 'LRU_cache'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions