python [Errno 2] No such file or directory: -
i learn python on ubuntu system. there errors shen tried read file .
fw = open(outfile,"a") outfile = 'sougou/reduced/c000008_pre.txt' ioerror: [errno 2] no such file or directory: 'sougou/reduced/c000008_pre.txt'
without additional information, can see 2 possibilities here.
the file trying access doesn't exist.
the path file not correct relative location calling python script from.
try providing absolute path file, , see if fixes issue:
outfile = '/some/path/here/sougou/reduced/c000008_pre.txt'
Comments
Post a Comment