如何解决BrokenPipeError:[Errno 32] Python 3.6中的管道坏了?

时间:2018-05-03 23:18:25

标签: python-3.x subprocess

来自file1我正在使用file2致电os.popen("python file2.py"),在file2中,我正在将csv文件读入下面的数据框,代码为:

dataset = read_csv('dataset.csv',encoding='ISO-8859-1')

我再次将数据帧的内容写入csv文件。 在读取和写入文件时,我收到错误:BrokenPipeError: [Errno 32] Broken pipe

我该怎么做才能解决它?请建议。我在linux中使用python 3.6。 提前谢谢。

0 个答案:

没有答案
相关问题