IBM Waston - 检索和排名

时间:2016-05-14 05:12:23

标签: python ibm-watson retrieve-and-rank

我跟随检索和排名教程,一切都很好,直到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

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

@ peter-wood在评论中回答了这个问题。

在这种情况下,不友好的错误消息:

WindowsError: [Error 2] The system cannot find the file specified

是由curl不在PATH上造成的。 train.py期望curl命令可用并且在PATH上。