报错显示: 首先进行Traceback,发现报错语句为:pickle.load()

之后网上查找原因有:

(1)https://www.cnblogs.com/rychh/p/9833318.html
(2)https://blog.csdn.net/qq_20373723/article/details/85258535

对上面作者提供的方法进行测试:

import pickle
with open("./data_preprocess.pkl","rb") as f1:data=pickle.load(f1)
print(data)


最后重新进行数据存入

pickle.dump((title_count, title_set, genres2int, features, targets_values, ratings, users, movies, data, movies_orig,users_orig), open('..\model\data_preprocess.pkl', 'wb'))

解决问题。
出现Ran out of input时,可以先试试上面的两种方法,最后考虑是不是pikle.load( )加载的文件对不对,重置文件即可。

python报错Ran out of input相关推荐

  1. python报错 TypeError: an integer is required

    问题描述: 在本地使用socket向NetAssist传送数据的时候,执行python文件后发现报出python 报错TypeError: an integer is required错误 代码: 1 ...

  2. python 报ValueError could not broadcast input array from shape或 Can‘t convert non-rectangular

    python 报ValueError: could not broadcast input array from shape numpy报ValueError: could not broadcast ...

  3. Python报错File “「string」“, line 1, in 「module」 NameError: name ‘q‘ is not defined

    Python报错File "", line 1, in NameError: name 'q' is not defined 笔者运行环境:Python 2.7.17 print ...

  4. python 报错 IndentationError: expected an indented block SyntaxError: invalid character in identifie

    红色方框那里敲击一个空格就好! 输入要在全英情况下! 另外,还要注意括号的事情.括号别出错误! IndentationError: expected an indented block的报错: Syn ...

  5. Python安装库较慢问题,Python报错pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool解决方法

    本文参考:https://blog.csdn.net/sinat_26811377/article/details/99698807 出现问题 在安装第三方库的时候,Python报错pip._vend ...

  6. 解决Python报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 658: illegal multibyte

    解决Python报错–UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 658: illegal multibyte ...

  7. python报错UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0xe8 in position 0 解决方案

    python报错UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 0 解决方案 参考文章: (1)python报 ...

  8. Python 报错 SyntaxError: invalid syntax 解决方法

    Python 报错 SyntaxError: invalid syntax 解决方法 参考文章: (1)Python 报错 SyntaxError: invalid syntax 解决方法 (2)ht ...

  9. python 报错 AttributeError: type object ‘datetime.datetime‘ has no attribute ‘datetime‘

    python报错:type object 'datetime.datetime' has no attribute 'datetime' 描述:在第一个python程序里还未报错,第二个程序完全复制过 ...

最新文章

  1. 一个LabVIEW控件,生成模拟波形效果
  2. String常用操作,StringBuffer。
  3. delphi中的函数传参如何传枚举参数_shell脚本的函数介绍使用和工作常用案例。建议收藏...
  4. 《数据结构与算法》实验报告——快速排序
  5. ubuntu16.04 xfce4的鼠标主题设置为oxygen-red、修改文件夹背景颜色、两处系统字体设置、右键菜单添加压缩解压选项
  6. 标题 计算机构自由度时主要步骤有哪些,2010年1月全国自考混凝土结构设计试题和答案...
  7. latex公式对齐_Word 写公式最方便的方法
  8. Linux多线程实践(9) --简单线程池的设计与实现
  9. mysql反掩码_Linux运维:文件目录管理
  10. mysql 命令类型_mysql 基本命令(3)-数据类型和运算符
  11. 基于DotNet构件技术的企业级敏捷软件开发平台 - AgileEAS.NET - 权限管理
  12. SQL SERVER 和EXCEL的数据导入导出
  13. 前端js如何生成一个对象,并转化为json字符串
  14. 不瞒你说,我最近跟Java源码杠上了
  15. 数电笔记之逻辑函数卡诺图化简
  16. 怎么用transmac制作mac安装盘|transmac制作苹果系统启动U盘方法
  17. word里双横线怎么打_word 双下横线怎么打出来
  18. 一个简单的例子由易到难理解动态规划
  19. linux查看本机IP掩码,linux下 取得本机ip、掩码、网关
  20. Anaconda3 安装 Python库,出现No module named的问题

热门文章

  1. 重采样 上采样 下采样
  2. nginx单点故障怎么破?
  3. linux多点触摸屏驱动程序,Linux系统实现支持多点触控操作[视频]
  4. Web前端HTML-CSS学习笔记
  5. 快速识别无效数据(数据有效性/数据验证)
  6. launch计算机上哪个初中,这位妈妈10年夏校经验告诉你:小学初中高中都该如何选择夏校?...
  7. FlycoTabLayout - SegmentTabLayout的使用
  8. Ubuntu安装企业微信解决中文字体乱码的问题
  9. WiFi 信号强度和网速有关系吗?
  10. 五个喜欢点赞图标动画特效(附源码,效果图)