qq_56864631 2021-06-18 11:05 采纳率: 94.1%
浏览 64
已采纳

各位大神请你们帮我看一下哪儿有问题了

\Python38\python.exe C:/Users/Administrator/PycharmProjects/pythonProject1/venv/zxsdf.pyTraceback (most recent call last): File "C:/Users/Administrator/PycharmProjects/pythonProject1/venv/zxsdf.py", line 4, in <module> wine = pd.read_csv('/wine.csv') File "D:\Python38\lib\site-packages\pandas\io\parsers.py", line 688, in read_csv return _read(filepath_or_buffer, kwds) File "D:\Python38\lib\site-packages\pandas\io\parsers.py", line 454, in _read parser = TextFileReader(fp_or_buf, **kwds) File "D:\Python38\lib\site-packages\pandas\io\parsers.py", line 948, in __init__ self._make_engine(self.engine) File "D:\Python38\lib\site-packages\pandas\io\parsers.py", line 1180, in _make_engine self._engine = CParserWrapper(self.f, **self.options) File "D:\Python38\lib\site-packages\pandas\io\parsers.py", line 2010, in __init__ self._reader = parsers.TextReader(src, **kwds) File "pandas\_libs\parsers.pyx", line 382, in pandas._libs.parsers.TextReader.__cinit__ File "pandas\_libs\parsers.pyx", line 674, in pandas._libs.parsers.TextReader._setup_parser_sourceFileNotFoundError: [Errno 2] No such file or directory: '/wine.csv'Process finished with exit code 1

  • 写回答

2条回答 默认 最新

  • Keep Doing this 2021-06-18 11:18
    关注

    第4行文件路径写错了,括号里改成“wine.csv”试试

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 需求高精度PT100设计电路和算法
  • ¥15 单片机配网,继电器开关,广播
  • ¥60 Qcustomplot绘制实时动态曲线
  • ¥20 运用matlab画x-y图
  • ¥15 用idea运行项目,运行tomcat报错:断言失败
  • ¥15 Sqlserver查询链接服务器数据问题
  • ¥15 Bibtex4Word 引用中文文献
  • ¥20 用opencv c/c++ 转换成灰度图,然后做一下直方图均衡,输出mp4文件
  • ¥20 matlab中的双层数值积分
  • ¥50 服务器打印水晶报表问题