OSError:[Errno 2]没有这样的文件或目录os.unlink

时间:2016-09-13 19:00:35

标签: python

新代码,试图在Mac osx 10.9.5上运行tsp art python脚本,我总是得到这个错误,它是否与临时文件有关?感谢

Loading bitmap file easy.pbm ...  done; 28138 stipples
Writing TSP solver input file /var/folders/kd/2c6gv9q97vs716cv7s8n2fsc0000gn/T/easy._jlpel.tsp ...  done
Running TSP solver ... 
Solver failed; status = 127

Traceback (most recent call last):
  File "/Users/DH/tspart.py", line 263, in <module>
    os.unlink( solfile )
OSError: [Errno 2] No such file or directory: 'easy.tour'
>>>

0 个答案:

没有答案