简体   繁体   中英

'tee' is not recognized as an internal or external command, operable program or batch file

I run some code in python on windows and I get an error of " 'tee' is not recognized as an internal or external command, operable program or batch file. "

result = './model/%s/result.txt'%opt.name #path of result.txt file os.system('python evaluate_gpu.py | tee -a %s'%result)

I know tee does not exist on windows can anyone help me and write replace code for windows version

Thank all

First of all, you can download UnxUtils from http://sourceforge.net/projects/unxutils/?source=dlp . Then, you need to find tee.exe and move it to the folder of system32 in your pc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM