weixin_39086917 2019-01-14 12:12 采纳率: 0%
浏览 13753

不是输入 .csv文件,但是出现 File b'data/data.csv' does not exist错误

C:\Users\Dell\Anaconda3\python.exe C:/Temp/lassos/first.py
Traceback (most recent call last):
File "C:/Temp/lassos/first.py", line 10, in
ori_data = pd.read_csv(path, header=0, sep='\t')
File "C:\Users\Dell\AppData\Roaming\Python\Python37\site-packages\pandas\io\parsers.py", line 678, in parser_f
return read(filepath_or_buffer, kwds)
File "C:\Users\Dell\AppData\Roaming\Python\Python37\site-packages\pandas\io\parsers.py", line 440, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "C:\Users\Dell\AppData\Roaming\Python\Python37\site-packages\pandas\io\parsers.py", line 787, in __init
_
self._make_engine(self.engine)
File "C:\Users\Dell\AppData\Roaming\Python\Python37\site-packages\pandas\io\parsers.py", line 1014, in make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "C:\Users\Dell\AppData\Roaming\Python\Python37\site-packages\pandas\io\parsers.py", line 1708, in __init
_
self._reader = parsers.TextReader(src, **kwds)
File "pandas_libs\parsers.pyx", line 384, in pandas._libs.parsers.TextReader.__cinit__
File "pandas_libs\parsers.pyx", line 695, in pandas._libs.parsers.TextReader._setup_parser_source
FileNotFoundError: File b'data/data.csv' does not exist

  • 写回答

1条回答 默认 最新

  • lyhsdy 2019-01-15 11:44
    关注

    意思是你的CSV文件不存在,data/data.csv路径错了吧

    评论

报告相同问题?

悬赏问题

  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值