我正在学习检索和排名教程,一切都很好,直到 train.py 脚本 - 我在下面收到一条错误消息:
Generating training data...
Traceback (most recent call last):
File "./train.py", line 83, in <module>
process = subprocess.Popen(shlex.split(curl_cmd), stdout=subprocess.PIPE)
File "C:\Python27\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
有什么想法吗?
请您参考如下方法:
@peter-wood 在评论中回答了这个问题。
在这种情况下,不友好的错误消息:
WindowsError: [Error 2] The system cannot find the file specified
是由 curl 不在 PATH 上引起的。 train.py 期望 curl 命令可用并在 PATH 上。
