Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
suyc0707 opened this issue Aug 25, 2023 · 2 comments

Comments

@suyc0707
Copy link

代码是类似这样的
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'

@LiangYang666
Copy link
Owner

你自己改了代码吧,改后是不是没添加LRU_cache.py文件

@suyc0707
Copy link
Author

啊,是我的疏忽,变量名我写成LUR_cache,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants